| Top |
This interface allows a caller to add filter elements to the GStreamer playback pipeline.
gboolean rb_player_gst_filter_add_filter (RBPlayerGstFilter *player,GstElement *element);
Adds a new filter to the playback pipeline. The filter may not be inserted immediately. The 'filter-inserted' signal will be emitted when this actually happens.
gboolean rb_player_gst_filter_remove_filter (RBPlayerGstFilter *player,GstElement *element);
Removes a filter from the playback pipeline. The filter may not be removed immediately. The 'filter-pre-remove' signal will be emitted immediately before this actually happens.
struct RBPlayerGstFilterIface {
GTypeInterface g_iface;
/* virtual functions */
gboolean (*add_filter) (RBPlayerGstFilter *player, GstElement *element);
gboolean (*remove_filter) (RBPlayerGstFilter *player, GstElement *element);
/* signals */
void (*filter_inserted) (RBPlayerGstFilter *player, GstElement *filter);
void (*filter_pre_remove) (RBPlayerGstFilter *player, GstElement *filter);
};
“filter-inserted” signalvoid user_function (RBPlayerGstFilter *player, GObject *filter, gpointer user_data)
The 'filter-inserted' signal is emitted when the tee element has been inserted into the pipeline and fully linked
player |
the RBPlayerGstFilter implementation |
|
filter |
the element which has been inserted |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Recursion
“filter-pre-remove” signalvoid user_function (RBPlayerGstFilter *player, GObject *filter, gpointer user_data)
The 'filter-pre-remove' signal is emitted immediately before the element is unlinked and removed from the pipeline
player |
the RBPlayerGstFilter implementation |
|
filter |
the element which is about to be removed |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Recursion