1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
7 <!-- ##### SECTION Long_Description ##### -->
9 GstBin is the simplest of the container elements, allowing elements to
10 become children of itself. Pads from the child elements can be ghosted to
11 the bin, making the bin itself look transparently like any other element,
12 allowing for deep nesting of predefined sub-pipelines.
15 A new GstBin is created with gst_bin_new(). Use a #GstPipeline instead if you want
16 to create a toplevel bin because a normal bin doesn't have a scheduler of its
20 After the bin has been created you will typically add elements to it with
21 gst_bin_add(). You can remove elements with gst_bin_remove().
24 An element can be retrieved from a bin with gst_bin_get_by_name(), using the
25 elements name. gst_bin_get_by_name_recurse_up() is mainly used for internal
26 purposes and will query the parent bins when the element is not found in the
30 The list of elements in a bin can be retrieved with gst_bin_get_list().
33 After the bin has been set to the PLAYING state (with gst_element_set_state()),
34 gst_bin_iterate() is used to process the elements in the bin.
37 The "object_added" signal is fired whenever a new object is added to the bin.
40 gst_bin_destroy() is used to destroy the bin.
43 To control the selection of the clock in a bin, you can use the following methods:
44 gst_bin_auto_clock() to let the bin select a clock automatically, gst_bin_get_clock() to
45 get the current clock of the bin and gst_bin_use_clock() to specify a clock explicitly.
48 <!-- ##### SECTION See_Also ##### -->
53 <!-- ##### ENUM GstBinFlags ##### -->
58 @GST_BIN_FLAG_MANAGER:
59 @GST_BIN_SELF_SCHEDULABLE:
60 @GST_BIN_FLAG_PREFER_COTHREADS:
61 @GST_BIN_FLAG_FIXED_CLOCK:
64 <!-- ##### STRUCT GstBin ##### -->
70 <!-- ##### USER_FUNCTION GstBinPrePostIterateFunction ##### -->
72 The signature of the callback for the post and pre iterate function as set with
73 gst_bin_set_pre_iterate_function() and gst_bin_set_post_iterate_function().
76 @bin: The bin that performed the callback
80 <!-- ##### FUNCTION gst_bin_new ##### -->
89 <!-- ##### MACRO gst_bin_destroy ##### -->
91 Free the memory allocated by this bin
97 <!-- ##### FUNCTION gst_bin_add ##### -->
106 <!-- ##### FUNCTION gst_bin_add_many ##### -->
116 <!-- ##### FUNCTION gst_bin_remove ##### -->
125 <!-- ##### FUNCTION gst_bin_get_by_name ##### -->
135 <!-- ##### FUNCTION gst_bin_get_by_name_recurse_up ##### -->
145 <!-- ##### FUNCTION gst_bin_get_list ##### -->
154 <!-- ##### FUNCTION gst_bin_set_state_type ##### -->
165 <!-- ##### FUNCTION gst_bin_iterate ##### -->
174 <!-- ##### FUNCTION gst_bin_set_post_iterate_function ##### -->
184 <!-- ##### FUNCTION gst_bin_set_pre_iterate_function ##### -->
194 <!-- ##### FUNCTION gst_bin_child_state_change ##### -->
205 <!-- ##### FUNCTION gst_bin_auto_clock ##### -->
213 <!-- ##### FUNCTION gst_bin_get_clock ##### -->
222 <!-- ##### FUNCTION gst_bin_use_clock ##### -->
231 <!-- ##### SIGNAL GstBin::object-added ##### -->
233 is signaled whenever a new <classname>GstElement</classname> is added to the <classname>GstBin</classname>
237 @gstbin: the object which received the signal.
238 @arg1: the element that was added