gstinsertbin
This element is a GstBin that has a single source and sink pad. It allows
the user (the application) to easily add and remove filter-like element
(that has a single source and sink pad), to the pipeline while it is running.
It features a fully asynchronous API inspired by GLib's GAsyncResult based
APIs.
Each operation (addition or removal) can take a callback, this callback
is guaranteed to be called. Unlike GIO, there is no guarantee about where
this callback will be called from, it could be called before the action
returns or it could be called later from another thread. The signature of
this callback GstInsertBinCallback.
Apart from the library API, since 1.24 insertbin can also be found in the
registry:
GstElement *pipeline, *insertbin, *videoflip;
gst_init (NULL, NULL);
pipeline =
gst_parse_launch ("videotestsrc ! insertbin name=i ! autovideosink",
NULL);
...
insertbin = gst_bin_get_by_name (GST_BIN (pipeline), "i");
videoflip = gst_element_factory_make ("videoflip", NULL);
...
g_object_set (videoflip, "method", 1, NULL);
g_signal_emit_by_name (insertbin, "append", videoflip, NULL, NULL);
...
gst_insert_bin_append
gst_insert_bin_append (GstInsertBin * self,
GstElement * element,
GstInsertBinCallback callback,
gpointer user_data)
This action signal adds the filter like element after any other element
in the bin.
Same as the append signal.
Parameters:
self
–
No description available
callback
(
[scope async])
–
the callback to call when the element has been
added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.append
function GstInsertBin.InsertBin.prototype.append(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
}
This action signal adds the filter like element after any other element
in the bin.
Same as the append signal.
Parameters:
the callback to call when the element has been
added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.append
def GstInsertBin.InsertBin.append (self, element, callback, *user_data):
This action signal adds the filter like element after any other element
in the bin.
Same as the append signal.
Parameters:
the callback to call when the element has been
added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_insert_after
gst_insert_bin_insert_after (GstInsertBin * self,
GstElement * element,
GstElement * sibling,
GstInsertBinCallback callback,
gpointer user_data)
This action signal adds the filter like element after the sibling
element in the bin.
Same as the insert-after signal.
Parameters:
self
–
No description available
callback
(
[scope async])
–
the callback to call when the element has been
added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.insert_after
function GstInsertBin.InsertBin.prototype.insert_after(element: Gst.Element, sibling: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
}
This action signal adds the filter like element after the sibling
element in the bin.
Same as the insert-after signal.
Parameters:
the callback to call when the element has been
added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.insert_after
def GstInsertBin.InsertBin.insert_after (self, element, sibling, callback, *user_data):
This action signal adds the filter like element after the sibling
element in the bin.
Same as the insert-after signal.
Parameters:
the callback to call when the element has been
added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_insert_before
gst_insert_bin_insert_before (GstInsertBin * self,
GstElement * element,
GstElement * sibling,
GstInsertBinCallback callback,
gpointer user_data)
This action signal adds the filter like element before the sibling
element in the bin.
Same as the insert-before signal.
Parameters:
self
–
No description available
callback
(
[scope async])
–
the callback to call when the element has been
added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.insert_before
function GstInsertBin.InsertBin.prototype.insert_before(element: Gst.Element, sibling: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
}
This action signal adds the filter like element before the sibling
element in the bin.
Same as the insert-before signal.
Parameters:
the callback to call when the element has been
added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.insert_before
def GstInsertBin.InsertBin.insert_before (self, element, sibling, callback, *user_data):
This action signal adds the filter like element before the sibling
element in the bin.
Same as the insert-before signal.
Parameters:
the callback to call when the element has been
added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_prepend
gst_insert_bin_prepend (GstInsertBin * self,
GstElement * element,
GstInsertBinCallback callback,
gpointer user_data)
This action signal adds the filter like element before any other element
in the bin.
Same as the prepend signal.
Parameters:
self
–
No description available
callback
(
[scope async])
–
the callback to call when the element has been
added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.prepend
function GstInsertBin.InsertBin.prototype.prepend(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
}
This action signal adds the filter like element before any other element
in the bin.
Same as the prepend signal.
Parameters:
the callback to call when the element has been
added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prepend
def GstInsertBin.InsertBin.prepend (self, element, callback, *user_data):
This action signal adds the filter like element before any other element
in the bin.
Same as the prepend signal.
Parameters:
the callback to call when the element has been
added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_remove
gst_insert_bin_remove (GstInsertBin * self,
GstElement * element,
GstInsertBinCallback callback,
gpointer user_data)
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
self
–
No description available
callback
(
[scope async])
–
the callback to call when the element has been
removed or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.remove
function GstInsertBin.InsertBin.prototype.remove(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
}
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
the callback to call when the element has been
removed or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.remove
def GstInsertBin.InsertBin.remove (self, element, callback, *user_data):
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
the callback to call when the element has been
removed or not, or None
The data to pass to the callback
Since : 1.2
append
g_signal_emit_by_name (self, "append", callback, user_data, user_data2, user_data);
This action signal adds the filter like element after any other element
in the bin.
Same as gst_insert_bin_append
Parameters:
the callback to call when the element has been added or not, or
NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
append
let ret = self.emit ("append", callback, user_data, user_data2, user_data);
This action signal adds the filter like element after any other element
in the bin.
Same as GstInsertBin.InsertBin.prototype.append
Parameters:
the callback to call when the element has been added or not, or
null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
append
ret = self.emit ("append", callback, user_data, user_data2, user_data)
This action signal adds the filter like element after any other element
in the bin.
Same as GstInsertBin.InsertBin.append
Parameters:
the callback to call when the element has been added or not, or
None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-after
g_signal_emit_by_name (self, "insert-after", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element after the sibling
element in the bin.
element in the bin.
Same as gst_insert_bin_insert_after
Parameters:
the callback to call when the element has been added or not, or
NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-after
let ret = self.emit ("insert-after", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element after the sibling
element in the bin.
element in the bin.
Same as GstInsertBin.InsertBin.prototype.insert_after
Parameters:
the callback to call when the element has been added or not, or
null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-after
ret = self.emit ("insert-after", sibling, callback, user_data, user_data2, user_data)
This action signal adds the filter like element after the sibling
element in the bin.
element in the bin.
Same as GstInsertBin.InsertBin.insert_after
Parameters:
the callback to call when the element has been added or not, or
None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-before
g_signal_emit_by_name (self, "insert-before", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element before the sibling
element in the bin.
Same as gst_insert_bin_insert_before
Parameters:
the callback to call when the element has been added or not, or
NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-before
let ret = self.emit ("insert-before", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element before the sibling
element in the bin.
Same as GstInsertBin.InsertBin.prototype.insert_before
Parameters:
the callback to call when the element has been added or not, or
null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
insert-before
ret = self.emit ("insert-before", sibling, callback, user_data, user_data2, user_data)
This action signal adds the filter like element before the sibling
element in the bin.
Same as GstInsertBin.InsertBin.insert_before
Parameters:
the callback to call when the element has been added or not, or
None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
prepend
g_signal_emit_by_name (self, "prepend", callback, user_data, user_data2, user_data);
This action signal adds the filter like element before any other element
in the bin.
Same as gst_insert_bin_prepend
Parameters:
the callback to call when the element has been added or not, or
NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
prepend
let ret = self.emit ("prepend", callback, user_data, user_data2, user_data);
This action signal adds the filter like element before any other element
in the bin.
Same as GstInsertBin.InsertBin.prototype.prepend
Parameters:
the callback to call when the element has been added or not, or
null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
prepend
ret = self.emit ("prepend", callback, user_data, user_data2, user_data)
This action signal adds the filter like element before any other element
in the bin.
Same as GstInsertBin.InsertBin.prepend
Parameters:
the callback to call when the element has been added or not, or
None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
remove
g_signal_emit_by_name (self, "remove", callback, user_data, user_data2, user_data);
This action signal removed the filter like element from the bin.
Same as gst_insert_bin_remove
Parameters:
the callback to call when the element has been removed or not,
or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
remove
let ret = self.emit ("remove", callback, user_data, user_data2, user_data);
This action signal removed the filter like element from the bin.
Same as GstInsertBin.InsertBin.prototype.remove
Parameters:
the callback to call when the element has been removed or not,
or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
remove
ret = self.emit ("remove", callback, user_data, user_data2, user_data)
This action signal removed the filter like element from the bin.
Same as GstInsertBin.InsertBin.remove
Parameters:
the callback to call when the element has been removed or not,
or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Flags:
Run Last
/
Action
Since : 1.2
GstInsertBinCallback
(*GstInsertBinCallback) (GstInsertBin * insertbin,
GstElement * element,
gboolean success,
gpointer user_data)
This is the prototype of callbacks to be called when the operation completes.
It could be called at any time, including as a re-entrant call while the
operation is requested.
Parameters:
element
–
The GstElement on which the operation was performed
success
–
TRUE if the operation was successful
user_data
–
The user data passed
Since : 1.2
GstInsertBin.InsertBinCallback
function GstInsertBin.InsertBinCallback(insertbin: GstInsertBin.InsertBin, element: Gst.Element, success: Number, user_data: Object): {
}
This is the prototype of callbacks to be called when the operation completes.
It could be called at any time, including as a re-entrant call while the
operation is requested.
Parameters:
true if the operation was successful
Since : 1.2
GstInsertBin.InsertBinCallback
def GstInsertBin.InsertBinCallback (insertbin, element, success, *user_data):
This is the prototype of callbacks to be called when the operation completes.
It could be called at any time, including as a re-entrant call while the
operation is requested.
Parameters:
True if the operation was successful
Since : 1.2