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 <!-- ##### SECTION See_Also ##### -->
48 <!-- ##### ENUM GstBinFlags ##### -->
53 @GST_BIN_FLAG_MANAGER:
54 @GST_BIN_SELF_SCHEDULABLE:
55 @GST_BIN_FLAG_PREFER_COTHREADS:
56 @GST_BIN_FLAG_FIXED_CLOCK:
57 @GST_BIN_SELF_ITERATING:
60 <!-- ##### STRUCT GstBin ##### -->
66 <!-- ##### FUNCTION gst_bin_new ##### -->
75 <!-- ##### MACRO gst_bin_destroy ##### -->
77 Free the memory allocated by this bin
83 <!-- ##### FUNCTION gst_bin_add ##### -->
92 <!-- ##### FUNCTION gst_bin_add_many ##### -->
102 <!-- ##### FUNCTION gst_bin_remove ##### -->
111 <!-- ##### FUNCTION gst_bin_get_by_name ##### -->
121 <!-- ##### FUNCTION gst_bin_get_by_name_recurse_up ##### -->
131 <!-- ##### FUNCTION gst_bin_get_list ##### -->
140 <!-- ##### FUNCTION gst_bin_set_state_type ##### -->
151 <!-- ##### FUNCTION gst_bin_iterate ##### -->
160 <!-- ##### FUNCTION gst_bin_child_state_change ##### -->
171 <!-- ##### FUNCTION gst_bin_auto_clock ##### -->
179 <!-- ##### FUNCTION gst_bin_get_clock ##### -->
188 <!-- ##### FUNCTION gst_bin_use_clock ##### -->
197 <!-- ##### SIGNAL GstBin::object-added ##### -->
199 is signaled whenever a new <classname>GstElement</classname> is added to the <classname>GstBin</classname>
203 @gstbin: the object which received the signal.
204 @arg1: the element that was added