• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>GstObject: GStreamer 1.0 Core Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer 1.0 Core Reference Manual">
8<link rel="up" href="libgstreamer.html" title="GStreamer Core Library">
9<link rel="prev" href="gstreamer-GstMiniObject.html" title="GstMiniObject">
10<link rel="next" href="GstPad.html" title="GstPad">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#GstObject.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#GstObject.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span20                  <a href="#GstObject.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span21                  <a href="#GstObject.signals" class="shortcut">Signals</a></span>
22</td>
23<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
24<td><a accesskey="u" href="libgstreamer.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
25<td><a accesskey="p" href="gstreamer-GstMiniObject.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
26<td><a accesskey="n" href="GstPad.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
27</tr></table>
28<div class="refentry">
29<a name="GstObject"></a><div class="titlepage"></div>
30<div class="refnamediv"><table width="100%"><tr>
31<td valign="top">
32<h2><span class="refentrytitle"><a name="GstObject.top_of_page"></a>GstObject</span></h2>
33<p>GstObject — Base class for the GStreamer object hierarchy</p>
34</td>
35<td class="gallery_image" valign="top" align="right"></td>
36</tr></table></div>
37<div class="refsect1">
38<a name="GstObject.functions"></a><h2>Functions</h2>
39<div class="informaltable"><table class="informaltable" width="100%" border="0">
40<colgroup>
41<col width="150px" class="functions_return">
42<col class="functions_name">
43</colgroup>
44<tbody>
45<tr>
46<td class="define_keyword">#define</td>
47<td class="function_name">
48<a class="link" href="GstObject.html#GST-OBJECT-FLAGS:CAPS" title="GST_OBJECT_FLAGS()">GST_OBJECT_FLAGS</a><span class="c_punctuation">()</span>
49</td>
50</tr>
51<tr>
52<td class="define_keyword">#define</td>
53<td class="function_name">
54<a class="link" href="GstObject.html#GST-OBJECT-FLAG-IS-SET:CAPS" title="GST_OBJECT_FLAG_IS_SET()">GST_OBJECT_FLAG_IS_SET</a><span class="c_punctuation">()</span>
55</td>
56</tr>
57<tr>
58<td class="define_keyword">#define</td>
59<td class="function_name">
60<a class="link" href="GstObject.html#GST-OBJECT-FLAG-SET:CAPS" title="GST_OBJECT_FLAG_SET()">GST_OBJECT_FLAG_SET</a><span class="c_punctuation">()</span>
61</td>
62</tr>
63<tr>
64<td class="define_keyword">#define</td>
65<td class="function_name">
66<a class="link" href="GstObject.html#GST-OBJECT-FLAG-UNSET:CAPS" title="GST_OBJECT_FLAG_UNSET()">GST_OBJECT_FLAG_UNSET</a><span class="c_punctuation">()</span>
67</td>
68</tr>
69<tr>
70<td class="define_keyword">#define</td>
71<td class="function_name">
72<a class="link" href="GstObject.html#GST-OBJECT-NAME:CAPS" title="GST_OBJECT_NAME()">GST_OBJECT_NAME</a><span class="c_punctuation">()</span>
73</td>
74</tr>
75<tr>
76<td class="define_keyword">#define</td>
77<td class="function_name">
78<a class="link" href="GstObject.html#GST-OBJECT-PARENT:CAPS" title="GST_OBJECT_PARENT()">GST_OBJECT_PARENT</a><span class="c_punctuation">()</span>
79</td>
80</tr>
81<tr>
82<td class="define_keyword">#define</td>
83<td class="function_name">
84<a class="link" href="GstObject.html#GST-OBJECT-REFCOUNT:CAPS" title="GST_OBJECT_REFCOUNT()">GST_OBJECT_REFCOUNT</a><span class="c_punctuation">()</span>
85</td>
86</tr>
87<tr>
88<td class="define_keyword">#define</td>
89<td class="function_name">
90<a class="link" href="GstObject.html#GST-OBJECT-REFCOUNT-VALUE:CAPS" title="GST_OBJECT_REFCOUNT_VALUE()">GST_OBJECT_REFCOUNT_VALUE</a><span class="c_punctuation">()</span>
91</td>
92</tr>
93<tr>
94<td class="define_keyword">#define</td>
95<td class="function_name">
96<a class="link" href="GstObject.html#GST-OBJECT-LOCK:CAPS" title="GST_OBJECT_LOCK()">GST_OBJECT_LOCK</a><span class="c_punctuation">()</span>
97</td>
98</tr>
99<tr>
100<td class="define_keyword">#define</td>
101<td class="function_name">
102<a class="link" href="GstObject.html#GST-OBJECT-TRYLOCK:CAPS" title="GST_OBJECT_TRYLOCK()">GST_OBJECT_TRYLOCK</a><span class="c_punctuation">()</span>
103</td>
104</tr>
105<tr>
106<td class="define_keyword">#define</td>
107<td class="function_name">
108<a class="link" href="GstObject.html#GST-OBJECT-UNLOCK:CAPS" title="GST_OBJECT_UNLOCK()">GST_OBJECT_UNLOCK</a><span class="c_punctuation">()</span>
109</td>
110</tr>
111<tr>
112<td class="define_keyword">#define</td>
113<td class="function_name">
114<a class="link" href="GstObject.html#GST-OBJECT-GET-LOCK:CAPS" title="GST_OBJECT_GET_LOCK()">GST_OBJECT_GET_LOCK</a><span class="c_punctuation">()</span>
115</td>
116</tr>
117<tr>
118<td class="function_type">
119<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
120</td>
121<td class="function_name">
122<a class="link" href="GstObject.html#gst-object-set-name" title="gst_object_set_name ()">gst_object_set_name</a> <span class="c_punctuation">()</span>
123</td>
124</tr>
125<tr>
126<td class="function_type">
127<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
128</td>
129<td class="function_name">
130<a class="link" href="GstObject.html#gst-object-get-name" title="gst_object_get_name ()">gst_object_get_name</a> <span class="c_punctuation">()</span>
131</td>
132</tr>
133<tr>
134<td class="function_type">
135<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
136</td>
137<td class="function_name">
138<a class="link" href="GstObject.html#gst-object-set-parent" title="gst_object_set_parent ()">gst_object_set_parent</a> <span class="c_punctuation">()</span>
139</td>
140</tr>
141<tr>
142<td class="function_type">
143<a class="link" href="GstObject.html" title="GstObject"><span class="returnvalue">GstObject</span></a> *
144</td>
145<td class="function_name">
146<a class="link" href="GstObject.html#gst-object-get-parent" title="gst_object_get_parent ()">gst_object_get_parent</a> <span class="c_punctuation">()</span>
147</td>
148</tr>
149<tr>
150<td class="function_type">
151<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
152</td>
153<td class="function_name">
154<a class="link" href="GstObject.html#gst-object-has-as-parent" title="gst_object_has_as_parent ()">gst_object_has_as_parent</a> <span class="c_punctuation">()</span>
155</td>
156</tr>
157<tr>
158<td class="function_type">
159<span class="returnvalue">void</span>
160</td>
161<td class="function_name">
162<a class="link" href="GstObject.html#gst-object-unparent" title="gst_object_unparent ()">gst_object_unparent</a> <span class="c_punctuation">()</span>
163</td>
164</tr>
165<tr>
166<td class="function_type">
167<span class="returnvalue">void</span>
168</td>
169<td class="function_name">
170<a class="link" href="GstObject.html#gst-object-default-deep-notify" title="gst_object_default_deep_notify ()">gst_object_default_deep_notify</a> <span class="c_punctuation">()</span>
171</td>
172</tr>
173<tr>
174<td class="function_type">
175<span class="returnvalue">void</span>
176</td>
177<td class="function_name">
178<a class="link" href="GstObject.html#gst-object-default-error" title="gst_object_default_error ()">gst_object_default_error</a> <span class="c_punctuation">()</span>
179</td>
180</tr>
181<tr>
182<td class="function_type">
183<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
184</td>
185<td class="function_name">
186<a class="link" href="GstObject.html#gst-object-check-uniqueness" title="gst_object_check_uniqueness ()">gst_object_check_uniqueness</a> <span class="c_punctuation">()</span>
187</td>
188</tr>
189<tr>
190<td class="function_type">
191<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
192</td>
193<td class="function_name">
194<a class="link" href="GstObject.html#gst-object-has-as-ancestor" title="gst_object_has_as_ancestor ()">gst_object_has_as_ancestor</a> <span class="c_punctuation">()</span>
195</td>
196</tr>
197<tr>
198<td class="function_type">
199<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
200</td>
201<td class="function_name">
202<a class="link" href="GstObject.html#gst-object-has-ancestor" title="gst_object_has_ancestor ()">gst_object_has_ancestor</a> <span class="c_punctuation">()</span>
203</td>
204</tr>
205<tr>
206<td class="function_type">
207<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
208</td>
209<td class="function_name">
210<a class="link" href="GstObject.html#gst-object-ref" title="gst_object_ref ()">gst_object_ref</a> <span class="c_punctuation">()</span>
211</td>
212</tr>
213<tr>
214<td class="function_type">
215<span class="returnvalue">void</span>
216</td>
217<td class="function_name">
218<a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()">gst_object_unref</a> <span class="c_punctuation">()</span>
219</td>
220</tr>
221<tr>
222<td class="function_type">
223<span class="returnvalue">void</span>
224</td>
225<td class="function_name">
226<a class="link" href="GstObject.html#gst-clear-object" title="gst_clear_object ()">gst_clear_object</a> <span class="c_punctuation">()</span>
227</td>
228</tr>
229<tr>
230<td class="function_type">
231<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
232</td>
233<td class="function_name">
234<a class="link" href="GstObject.html#gst-object-ref-sink" title="gst_object_ref_sink ()">gst_object_ref_sink</a> <span class="c_punctuation">()</span>
235</td>
236</tr>
237<tr>
238<td class="function_type">
239<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
240</td>
241<td class="function_name">
242<a class="link" href="GstObject.html#gst-object-replace" title="gst_object_replace ()">gst_object_replace</a> <span class="c_punctuation">()</span>
243</td>
244</tr>
245<tr>
246<td class="function_type">
247<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
248</td>
249<td class="function_name">
250<a class="link" href="GstObject.html#gst-object-get-path-string" title="gst_object_get_path_string ()">gst_object_get_path_string</a> <span class="c_punctuation">()</span>
251</td>
252</tr>
253<tr>
254<td class="function_type">
255<a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="returnvalue">GstClockTime</span></a>
256</td>
257<td class="function_name">
258<a class="link" href="GstObject.html#gst-object-suggest-next-sync" title="gst_object_suggest_next_sync ()">gst_object_suggest_next_sync</a> <span class="c_punctuation">()</span>
259</td>
260</tr>
261<tr>
262<td class="function_type">
263<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
264</td>
265<td class="function_name">
266<a class="link" href="GstObject.html#gst-object-sync-values" title="gst_object_sync_values ()">gst_object_sync_values</a> <span class="c_punctuation">()</span>
267</td>
268</tr>
269<tr>
270<td class="function_type">
271<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
272</td>
273<td class="function_name">
274<a class="link" href="GstObject.html#gst-object-has-active-control-bindings" title="gst_object_has_active_control_bindings ()">gst_object_has_active_control_bindings</a> <span class="c_punctuation">()</span>
275</td>
276</tr>
277<tr>
278<td class="function_type">
279<span class="returnvalue">void</span>
280</td>
281<td class="function_name">
282<a class="link" href="GstObject.html#gst-object-set-control-bindings-disabled" title="gst_object_set_control_bindings_disabled ()">gst_object_set_control_bindings_disabled</a> <span class="c_punctuation">()</span>
283</td>
284</tr>
285<tr>
286<td class="function_type">
287<span class="returnvalue">void</span>
288</td>
289<td class="function_name">
290<a class="link" href="GstObject.html#gst-object-set-control-binding-disabled" title="gst_object_set_control_binding_disabled ()">gst_object_set_control_binding_disabled</a> <span class="c_punctuation">()</span>
291</td>
292</tr>
293<tr>
294<td class="function_type">
295<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
296</td>
297<td class="function_name">
298<a class="link" href="GstObject.html#gst-object-add-control-binding" title="gst_object_add_control_binding ()">gst_object_add_control_binding</a> <span class="c_punctuation">()</span>
299</td>
300</tr>
301<tr>
302<td class="function_type">
303<a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="returnvalue">GstControlBinding</span></a> *
304</td>
305<td class="function_name">
306<a class="link" href="GstObject.html#gst-object-get-control-binding" title="gst_object_get_control_binding ()">gst_object_get_control_binding</a> <span class="c_punctuation">()</span>
307</td>
308</tr>
309<tr>
310<td class="function_type">
311<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
312</td>
313<td class="function_name">
314<a class="link" href="GstObject.html#gst-object-remove-control-binding" title="gst_object_remove_control_binding ()">gst_object_remove_control_binding</a> <span class="c_punctuation">()</span>
315</td>
316</tr>
317<tr>
318<td class="function_type">
319<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="returnvalue">GValue</span></a> *
320</td>
321<td class="function_name">
322<a class="link" href="GstObject.html#gst-object-get-value" title="gst_object_get_value ()">gst_object_get_value</a> <span class="c_punctuation">()</span>
323</td>
324</tr>
325<tr>
326<td class="function_type">
327<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
328</td>
329<td class="function_name">
330<a class="link" href="GstObject.html#gst-object-get-value-array" title="gst_object_get_value_array ()">gst_object_get_value_array</a> <span class="c_punctuation">()</span>
331</td>
332</tr>
333<tr>
334<td class="function_type">
335<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
336</td>
337<td class="function_name">
338<a class="link" href="GstObject.html#gst-object-get-g-value-array" title="gst_object_get_g_value_array ()">gst_object_get_g_value_array</a> <span class="c_punctuation">()</span>
339</td>
340</tr>
341<tr>
342<td class="function_type">
343<a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="returnvalue">GstClockTime</span></a>
344</td>
345<td class="function_name">
346<a class="link" href="GstObject.html#gst-object-get-control-rate" title="gst_object_get_control_rate ()">gst_object_get_control_rate</a> <span class="c_punctuation">()</span>
347</td>
348</tr>
349<tr>
350<td class="function_type">
351<span class="returnvalue">void</span>
352</td>
353<td class="function_name">
354<a class="link" href="GstObject.html#gst-object-set-control-rate" title="gst_object_set_control_rate ()">gst_object_set_control_rate</a> <span class="c_punctuation">()</span>
355</td>
356</tr>
357</tbody>
358</table></div>
359</div>
360<div class="refsect1">
361<a name="GstObject.properties"></a><h2>Properties</h2>
362<div class="informaltable"><table class="informaltable" border="0">
363<colgroup>
364<col width="150px" class="properties_type">
365<col width="300px" class="properties_name">
366<col width="200px" class="properties_flags">
367</colgroup>
368<tbody>
369<tr>
370<td class="property_type">
371<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
372<td class="property_name"><a class="link" href="GstObject.html#GstObject--name" title="The “name” property">name</a></td>
373<td class="property_flags">Read / Write / Construct</td>
374</tr>
375<tr>
376<td class="property_type">
377<a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *</td>
378<td class="property_name"><a class="link" href="GstObject.html#GstObject--parent" title="The “parent” property">parent</a></td>
379<td class="property_flags">Read / Write</td>
380</tr>
381</tbody>
382</table></div>
383</div>
384<div class="refsect1">
385<a name="GstObject.signals"></a><h2>Signals</h2>
386<div class="informaltable"><table class="informaltable" border="0">
387<colgroup>
388<col width="150px" class="signals_return">
389<col width="300px" class="signals_name">
390<col width="200px" class="signals_flags">
391</colgroup>
392<tbody><tr>
393<td class="signal_type"><span class="returnvalue">void</span></td>
394<td class="signal_name"><a class="link" href="GstObject.html#GstObject-deep-notify" title="The “deep-notify” signal">deep-notify</a></td>
395<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-NO-HOOKS:CAPS">No Hooks</a></td>
396</tr></tbody>
397</table></div>
398</div>
399<div class="refsect1">
400<a name="GstObject.other"></a><h2>Types and Values</h2>
401<div class="informaltable"><table class="informaltable" width="100%" border="0">
402<colgroup>
403<col width="150px" class="name">
404<col class="description">
405</colgroup>
406<tbody>
407<tr>
408<td class="datatype_keyword">struct</td>
409<td class="function_name"><a class="link" href="GstObject.html#GstObject-struct" title="struct GstObject">GstObject</a></td>
410</tr>
411<tr>
412<td class="datatype_keyword">struct</td>
413<td class="function_name"><a class="link" href="GstObject.html#GstObjectClass" title="struct GstObjectClass">GstObjectClass</a></td>
414</tr>
415<tr>
416<td class="datatype_keyword">enum</td>
417<td class="function_name"><a class="link" href="GstObject.html#GstObjectFlags" title="enum GstObjectFlags">GstObjectFlags</a></td>
418</tr>
419</tbody>
420</table></div>
421</div>
422<div class="refsect1">
423<a name="GstObject.object-hierarchy"></a><h2>Object Hierarchy</h2>
424<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
425    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
426        <span class="lineart">╰──</span> GstObject
427            <span class="lineart">├──</span> <a class="link" href="GstAllocator.html" title="GstAllocator">GstAllocator</a>
428            <span class="lineart">├──</span> <a class="link" href="GstPad.html" title="GstPad">GstPad</a>
429            <span class="lineart">├──</span> <a class="link" href="GstPadTemplate.html" title="GstPadTemplate">GstPadTemplate</a>
430            <span class="lineart">├──</span> <a class="link" href="GstPluginFeature.html" title="GstPluginfeature">GstPluginFeature</a>
431            <span class="lineart">├──</span> <a class="link" href="GstElement.html" title="GstElement">GstElement</a>
432            <span class="lineart">├──</span> <a class="link" href="GstBus.html" title="GstBus">GstBus</a>
433            <span class="lineart">├──</span> <a class="link" href="GstTask.html" title="GstTask">GstTask</a>
434            <span class="lineart">├──</span> <a class="link" href="GstTaskPool.html" title="GstTaskPool">GstTaskPool</a>
435            <span class="lineart">├──</span> <a class="link" href="GstClock.html" title="GstClock">GstClock</a>
436            <span class="lineart">├──</span> <a class="link" href="GstControlBinding.html" title="GstControlBinding">GstControlBinding</a>
437            <span class="lineart">├──</span> <a class="link" href="GstControlSource.html" title="GstControlSource">GstControlSource</a>
438            <span class="lineart">├──</span> <a class="link" href="GstPlugin.html" title="GstPlugin">GstPlugin</a>
439            <span class="lineart">├──</span> <a class="link" href="GstRegistry.html" title="GstRegistry">GstRegistry</a>
440            <span class="lineart">├──</span> <a class="link" href="GstBufferPool.html" title="GstBufferPool">GstBufferPool</a>
441            <span class="lineart">├──</span> <a class="link" href="GstTracer.html" title="GstTracer">GstTracer</a>
442            <span class="lineart">╰──</span> <a class="link" href="GstTracerRecord.html" title="GstTracerRecord">GstTracerRecord</a>
443</pre>
444</div>
445<div class="refsect1">
446<a name="GstObject.includes"></a><h2>Includes</h2>
447<pre class="synopsis">#include &lt;gst/gst.h&gt;
448</pre>
449</div>
450<div class="refsect1">
451<a name="GstObject.description"></a><h2>Description</h2>
452<p><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> provides a root for the object hierarchy tree filed in by the
453GStreamer library.  It is currently a thin wrapper on top of
454<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"><span class="type">GInitiallyUnowned</span></a>. It is an abstract class that is not very usable on its own.</p>
455<p><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> gives us basic refcounting, parenting functionality and locking.
456Most of the functions are just extended for special GStreamer needs and can be
457found under the same name in the base class of <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> which is <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
458(e.g. <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> becomes <a class="link" href="GstObject.html#gst-object-ref" title="gst_object_ref ()"><code class="function">gst_object_ref()</code></a>).</p>
459<p>Since <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> derives from <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"><span class="type">GInitiallyUnowned</span></a>, it also inherits the
460floating reference. Be aware that functions such as <a class="link" href="GstBin.html#gst-bin-add" title="gst_bin_add ()"><code class="function">gst_bin_add()</code></a> and
461<a class="link" href="GstElement.html#gst-element-add-pad" title="gst_element_add_pad ()"><code class="function">gst_element_add_pad()</code></a> take ownership of the floating reference.</p>
462<p>In contrast to <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> instances, <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> adds a name property. The functions
463<a class="link" href="GstObject.html#gst-object-set-name" title="gst_object_set_name ()"><code class="function">gst_object_set_name()</code></a> and <a class="link" href="GstObject.html#gst-object-get-name" title="gst_object_get_name ()"><code class="function">gst_object_get_name()</code></a> are used to set/get the name
464of the object.</p>
465<div class="refsect3">
466<a name="id-1.3.33.9.6"></a><h4>controlled properties</h4>
467<p>Controlled properties offers a lightweight way to adjust gobject properties
468over stream-time. It works by using time-stamped value pairs that are queued
469for element-properties. At run-time the elements continuously pull value
470changes for the current stream-time.</p>
471<p>What needs to be changed in a <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a>?
472Very little - it is just two steps to make a plugin controllable!</p>
473<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
474<li class="listitem"><p>mark gobject-properties paramspecs that make sense to be controlled,
475by GST_PARAM_CONTROLLABLE.</p></li>
476<li class="listitem"><p>when processing data (get, chain, loop function) at the beginning call
477gst_object_sync_values(element,timestamp).
478This will make the controller update all GObject properties that are
479under its control with the current values based on the timestamp.</p></li>
480</ul></div>
481<p>What needs to be done in applications? Again it's not a lot to change.</p>
482<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
483<li class="listitem"><p>create a <a class="link" href="GstControlSource.html" title="GstControlSource"><span class="type">GstControlSource</span></a>.
484csource = <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstInterpolationControlSource.html#gst-interpolation-control-source-new"><code class="function">gst_interpolation_control_source_new()</code></a>;
485g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);</p></li>
486<li class="listitem"><p>Attach the <a class="link" href="GstControlSource.html" title="GstControlSource"><span class="type">GstControlSource</span></a> on the controller to a property.
487gst_object_add_control_binding (object, gst_direct_control_binding_new (object, "prop1", csource));</p></li>
488<li class="listitem"><p>Set the control values
489gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,0 * GST_SECOND, value1);
490gst_timed_value_control_source_set ((GstTimedValueControlSource *)csource,1 * GST_SECOND, value2);</p></li>
491<li class="listitem"><p>start your pipeline</p></li>
492</ul></div>
493</div>
494</div>
495<div class="refsect1">
496<a name="GstObject.functions_details"></a><h2>Functions</h2>
497<div class="refsect2">
498<a name="GST-OBJECT-FLAGS:CAPS"></a><h3>GST_OBJECT_FLAGS()</h3>
499<pre class="programlisting">#define GST_OBJECT_FLAGS(obj)                  (GST_OBJECT_CAST (obj)-&gt;flags)
500</pre>
501<p>This macro returns the entire set of flags for the object.</p>
502<div class="refsect3">
503<a name="GST-OBJECT-FLAGS.parameters"></a><h4>Parameters</h4>
504<div class="informaltable"><table class="informaltable" width="100%" border="0">
505<colgroup>
506<col width="150px" class="parameters_name">
507<col class="parameters_description">
508<col width="200px" class="parameters_annotations">
509</colgroup>
510<tbody><tr>
511<td class="parameter_name"><p>obj</p></td>
512<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
513<td class="parameter_annotations"> </td>
514</tr></tbody>
515</table></div>
516</div>
517</div>
518<hr>
519<div class="refsect2">
520<a name="GST-OBJECT-FLAG-IS-SET:CAPS"></a><h3>GST_OBJECT_FLAG_IS_SET()</h3>
521<pre class="programlisting">#define GST_OBJECT_FLAG_IS_SET(obj,flag)       ((GST_OBJECT_FLAGS (obj) &amp; (flag)) == (flag))
522</pre>
523<p>This macro checks to see if the given flag is set.</p>
524<div class="refsect3">
525<a name="GST-OBJECT-FLAG-IS-SET.parameters"></a><h4>Parameters</h4>
526<div class="informaltable"><table class="informaltable" width="100%" border="0">
527<colgroup>
528<col width="150px" class="parameters_name">
529<col class="parameters_description">
530<col width="200px" class="parameters_annotations">
531</colgroup>
532<tbody>
533<tr>
534<td class="parameter_name"><p>obj</p></td>
535<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
536<td class="parameter_annotations"> </td>
537</tr>
538<tr>
539<td class="parameter_name"><p>flag</p></td>
540<td class="parameter_description"><p>Flag to check for</p></td>
541<td class="parameter_annotations"> </td>
542</tr>
543</tbody>
544</table></div>
545</div>
546</div>
547<hr>
548<div class="refsect2">
549<a name="GST-OBJECT-FLAG-SET:CAPS"></a><h3>GST_OBJECT_FLAG_SET()</h3>
550<pre class="programlisting">#define GST_OBJECT_FLAG_SET(obj,flag)          (GST_OBJECT_FLAGS (obj) |= (flag))
551</pre>
552<p>This macro sets the given bits.</p>
553<div class="refsect3">
554<a name="GST-OBJECT-FLAG-SET.parameters"></a><h4>Parameters</h4>
555<div class="informaltable"><table class="informaltable" width="100%" border="0">
556<colgroup>
557<col width="150px" class="parameters_name">
558<col class="parameters_description">
559<col width="200px" class="parameters_annotations">
560</colgroup>
561<tbody>
562<tr>
563<td class="parameter_name"><p>obj</p></td>
564<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
565<td class="parameter_annotations"> </td>
566</tr>
567<tr>
568<td class="parameter_name"><p>flag</p></td>
569<td class="parameter_description"><p>Flag to set</p></td>
570<td class="parameter_annotations"> </td>
571</tr>
572</tbody>
573</table></div>
574</div>
575</div>
576<hr>
577<div class="refsect2">
578<a name="GST-OBJECT-FLAG-UNSET:CAPS"></a><h3>GST_OBJECT_FLAG_UNSET()</h3>
579<pre class="programlisting">#define GST_OBJECT_FLAG_UNSET(obj,flag)        (GST_OBJECT_FLAGS (obj) &amp;= ~(flag))
580</pre>
581<p>This macro unsets the given bits.</p>
582<div class="refsect3">
583<a name="GST-OBJECT-FLAG-UNSET.parameters"></a><h4>Parameters</h4>
584<div class="informaltable"><table class="informaltable" width="100%" border="0">
585<colgroup>
586<col width="150px" class="parameters_name">
587<col class="parameters_description">
588<col width="200px" class="parameters_annotations">
589</colgroup>
590<tbody>
591<tr>
592<td class="parameter_name"><p>obj</p></td>
593<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
594<td class="parameter_annotations"> </td>
595</tr>
596<tr>
597<td class="parameter_name"><p>flag</p></td>
598<td class="parameter_description"><p>Flag to set</p></td>
599<td class="parameter_annotations"> </td>
600</tr>
601</tbody>
602</table></div>
603</div>
604</div>
605<hr>
606<div class="refsect2">
607<a name="GST-OBJECT-NAME:CAPS"></a><h3>GST_OBJECT_NAME()</h3>
608<pre class="programlisting">#define GST_OBJECT_NAME(obj)            (GST_OBJECT_CAST(obj)-&gt;name)
609</pre>
610<p>Get the name of this object. This is not thread-safe by default
611(i.e. you will have to make sure the object lock is taken yourself).
612If in doubt use <a class="link" href="GstObject.html#gst-object-get-name" title="gst_object_get_name ()"><code class="function">gst_object_get_name()</code></a> instead.</p>
613<div class="refsect3">
614<a name="GST-OBJECT-NAME.parameters"></a><h4>Parameters</h4>
615<div class="informaltable"><table class="informaltable" width="100%" border="0">
616<colgroup>
617<col width="150px" class="parameters_name">
618<col class="parameters_description">
619<col width="200px" class="parameters_annotations">
620</colgroup>
621<tbody><tr>
622<td class="parameter_name"><p>obj</p></td>
623<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
624<td class="parameter_annotations"> </td>
625</tr></tbody>
626</table></div>
627</div>
628</div>
629<hr>
630<div class="refsect2">
631<a name="GST-OBJECT-PARENT:CAPS"></a><h3>GST_OBJECT_PARENT()</h3>
632<pre class="programlisting">#define GST_OBJECT_PARENT(obj)          (GST_OBJECT_CAST(obj)-&gt;parent)
633</pre>
634<p>Get the parent of this object. This is not thread-safe by default
635(i.e. you will have to make sure the object lock is taken yourself).
636If in doubt use <a class="link" href="GstObject.html#gst-object-get-parent" title="gst_object_get_parent ()"><code class="function">gst_object_get_parent()</code></a> instead.</p>
637<div class="refsect3">
638<a name="GST-OBJECT-PARENT.parameters"></a><h4>Parameters</h4>
639<div class="informaltable"><table class="informaltable" width="100%" border="0">
640<colgroup>
641<col width="150px" class="parameters_name">
642<col class="parameters_description">
643<col width="200px" class="parameters_annotations">
644</colgroup>
645<tbody><tr>
646<td class="parameter_name"><p>obj</p></td>
647<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
648<td class="parameter_annotations"> </td>
649</tr></tbody>
650</table></div>
651</div>
652</div>
653<hr>
654<div class="refsect2">
655<a name="GST-OBJECT-REFCOUNT:CAPS"></a><h3>GST_OBJECT_REFCOUNT()</h3>
656<pre class="programlisting">#define GST_OBJECT_REFCOUNT(obj)                (((GObject*)(obj))-&gt;ref_count)
657</pre>
658<p>Get access to the reference count field of the object.</p>
659<div class="refsect3">
660<a name="GST-OBJECT-REFCOUNT.parameters"></a><h4>Parameters</h4>
661<div class="informaltable"><table class="informaltable" width="100%" border="0">
662<colgroup>
663<col width="150px" class="parameters_name">
664<col class="parameters_description">
665<col width="200px" class="parameters_annotations">
666</colgroup>
667<tbody><tr>
668<td class="parameter_name"><p>obj</p></td>
669<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
670<td class="parameter_annotations"> </td>
671</tr></tbody>
672</table></div>
673</div>
674</div>
675<hr>
676<div class="refsect2">
677<a name="GST-OBJECT-REFCOUNT-VALUE:CAPS"></a><h3>GST_OBJECT_REFCOUNT_VALUE()</h3>
678<pre class="programlisting">#define GST_OBJECT_REFCOUNT_VALUE(obj)          g_atomic_int_get ((gint *) &amp;GST_OBJECT_REFCOUNT(obj))
679</pre>
680<p>Get the reference count value of the object.</p>
681<div class="refsect3">
682<a name="GST-OBJECT-REFCOUNT-VALUE.parameters"></a><h4>Parameters</h4>
683<div class="informaltable"><table class="informaltable" width="100%" border="0">
684<colgroup>
685<col width="150px" class="parameters_name">
686<col class="parameters_description">
687<col width="200px" class="parameters_annotations">
688</colgroup>
689<tbody><tr>
690<td class="parameter_name"><p>obj</p></td>
691<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
692<td class="parameter_annotations"> </td>
693</tr></tbody>
694</table></div>
695</div>
696</div>
697<hr>
698<div class="refsect2">
699<a name="GST-OBJECT-LOCK:CAPS"></a><h3>GST_OBJECT_LOCK()</h3>
700<pre class="programlisting">#define GST_OBJECT_LOCK(obj)                   g_mutex_lock(GST_OBJECT_GET_LOCK(obj))
701</pre>
702<p>This macro will obtain a lock on the object, making serialization possible.
703It blocks until the lock can be obtained.</p>
704<div class="refsect3">
705<a name="GST-OBJECT-LOCK.parameters"></a><h4>Parameters</h4>
706<div class="informaltable"><table class="informaltable" width="100%" border="0">
707<colgroup>
708<col width="150px" class="parameters_name">
709<col class="parameters_description">
710<col width="200px" class="parameters_annotations">
711</colgroup>
712<tbody><tr>
713<td class="parameter_name"><p>obj</p></td>
714<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to lock</p></td>
715<td class="parameter_annotations"> </td>
716</tr></tbody>
717</table></div>
718</div>
719</div>
720<hr>
721<div class="refsect2">
722<a name="GST-OBJECT-TRYLOCK:CAPS"></a><h3>GST_OBJECT_TRYLOCK()</h3>
723<pre class="programlisting">#define GST_OBJECT_TRYLOCK(obj)                g_mutex_trylock(GST_OBJECT_GET_LOCK(obj))
724</pre>
725<p>This macro will try to obtain a lock on the object, but will return with
726<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it can't get it immediately.</p>
727<div class="refsect3">
728<a name="GST-OBJECT-TRYLOCK.parameters"></a><h4>Parameters</h4>
729<div class="informaltable"><table class="informaltable" width="100%" border="0">
730<colgroup>
731<col width="150px" class="parameters_name">
732<col class="parameters_description">
733<col width="200px" class="parameters_annotations">
734</colgroup>
735<tbody><tr>
736<td class="parameter_name"><p>obj</p></td>
737<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>.</p></td>
738<td class="parameter_annotations"> </td>
739</tr></tbody>
740</table></div>
741</div>
742</div>
743<hr>
744<div class="refsect2">
745<a name="GST-OBJECT-UNLOCK:CAPS"></a><h3>GST_OBJECT_UNLOCK()</h3>
746<pre class="programlisting">#define GST_OBJECT_UNLOCK(obj)                 g_mutex_unlock(GST_OBJECT_GET_LOCK(obj))
747</pre>
748<p>This macro releases a lock on the object.</p>
749<div class="refsect3">
750<a name="GST-OBJECT-UNLOCK.parameters"></a><h4>Parameters</h4>
751<div class="informaltable"><table class="informaltable" width="100%" border="0">
752<colgroup>
753<col width="150px" class="parameters_name">
754<col class="parameters_description">
755<col width="200px" class="parameters_annotations">
756</colgroup>
757<tbody><tr>
758<td class="parameter_name"><p>obj</p></td>
759<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to unlock.</p></td>
760<td class="parameter_annotations"> </td>
761</tr></tbody>
762</table></div>
763</div>
764</div>
765<hr>
766<div class="refsect2">
767<a name="GST-OBJECT-GET-LOCK:CAPS"></a><h3>GST_OBJECT_GET_LOCK()</h3>
768<pre class="programlisting">#define GST_OBJECT_GET_LOCK(obj)               (&amp;GST_OBJECT_CAST(obj)-&gt;lock)
769</pre>
770<p>Acquire a reference to the mutex of this object.</p>
771<div class="refsect3">
772<a name="GST-OBJECT-GET-LOCK.parameters"></a><h4>Parameters</h4>
773<div class="informaltable"><table class="informaltable" width="100%" border="0">
774<colgroup>
775<col width="150px" class="parameters_name">
776<col class="parameters_description">
777<col width="200px" class="parameters_annotations">
778</colgroup>
779<tbody><tr>
780<td class="parameter_name"><p>obj</p></td>
781<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
782<td class="parameter_annotations"> </td>
783</tr></tbody>
784</table></div>
785</div>
786</div>
787<hr>
788<div class="refsect2">
789<a name="gst-object-set-name"></a><h3>gst_object_set_name ()</h3>
790<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
791gst_object_set_name (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
792                     <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
793<p>Sets the name of <em class="parameter"><code>object</code></em>
794, or gives <em class="parameter"><code>object</code></em>
795 a guaranteed unique
796name (if <em class="parameter"><code>name</code></em>
797 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).
798This function makes a copy of the provided name, so the caller
799retains ownership of the name it sent.</p>
800<div class="refsect3">
801<a name="gst-object-set-name.parameters"></a><h4>Parameters</h4>
802<div class="informaltable"><table class="informaltable" width="100%" border="0">
803<colgroup>
804<col width="150px" class="parameters_name">
805<col class="parameters_description">
806<col width="200px" class="parameters_annotations">
807</colgroup>
808<tbody>
809<tr>
810<td class="parameter_name"><p>object</p></td>
811<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
812<td class="parameter_annotations"> </td>
813</tr>
814<tr>
815<td class="parameter_name"><p>name</p></td>
816<td class="parameter_description"><p>new name of object. </p></td>
817<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
818</tr>
819</tbody>
820</table></div>
821</div>
822<div class="refsect3">
823<a name="gst-object-set-name.returns"></a><h4>Returns</h4>
824<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the name could be set. Since Objects that have
825a parent cannot be renamed, this function returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> in those
826cases.</p>
827<p>MT safe.  This function grabs and releases <em class="parameter"><code>object</code></em>
828's LOCK.</p>
829</div>
830</div>
831<hr>
832<div class="refsect2">
833<a name="gst-object-get-name"></a><h3>gst_object_get_name ()</h3>
834<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
835gst_object_get_name (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
836<p>Returns a copy of the name of <em class="parameter"><code>object</code></em>
837.
838Caller should <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> the return value after usage.
839For a nameless object, this returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, which you can safely <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
840as well.</p>
841<p>Free-function: g_free</p>
842<div class="refsect3">
843<a name="gst-object-get-name.parameters"></a><h4>Parameters</h4>
844<div class="informaltable"><table class="informaltable" width="100%" border="0">
845<colgroup>
846<col width="150px" class="parameters_name">
847<col class="parameters_description">
848<col width="200px" class="parameters_annotations">
849</colgroup>
850<tbody><tr>
851<td class="parameter_name"><p>object</p></td>
852<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
853<td class="parameter_annotations"> </td>
854</tr></tbody>
855</table></div>
856</div>
857<div class="refsect3">
858<a name="gst-object-get-name.returns"></a><h4>Returns</h4>
859<p>the name of <em class="parameter"><code>object</code></em>
860. <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>
861after usage.</p>
862<p>MT safe. This function grabs and releases <em class="parameter"><code>object</code></em>
863's LOCK. </p>
864<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
865</div>
866</div>
867<hr>
868<div class="refsect2">
869<a name="gst-object-set-parent"></a><h3>gst_object_set_parent ()</h3>
870<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
871gst_object_set_parent (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
872                       <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *parent</code></em>);</pre>
873<p>Sets the parent of <em class="parameter"><code>object</code></em>
874 to <em class="parameter"><code>parent</code></em>
875. The object's reference count will
876be incremented, and any floating reference will be removed (see <a class="link" href="GstObject.html#gst-object-ref-sink" title="gst_object_ref_sink ()"><code class="function">gst_object_ref_sink()</code></a>).</p>
877<div class="refsect3">
878<a name="gst-object-set-parent.parameters"></a><h4>Parameters</h4>
879<div class="informaltable"><table class="informaltable" width="100%" border="0">
880<colgroup>
881<col width="150px" class="parameters_name">
882<col class="parameters_description">
883<col width="200px" class="parameters_annotations">
884</colgroup>
885<tbody>
886<tr>
887<td class="parameter_name"><p>object</p></td>
888<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>. </p></td>
889<td class="parameter_annotations"><span class="annotation">[<acronym title="Alias for transfer none, used for objects with floating refs."><span class="acronym">transfer floating</span></acronym>]</span></td>
890</tr>
891<tr>
892<td class="parameter_name"><p>parent</p></td>
893<td class="parameter_description"><p>new parent of object</p></td>
894<td class="parameter_annotations"> </td>
895</tr>
896</tbody>
897</table></div>
898</div>
899<div class="refsect3">
900<a name="gst-object-set-parent.returns"></a><h4>Returns</h4>
901<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>parent</code></em>
902could be set or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> when <em class="parameter"><code>object</code></em>
903already had a parent or <em class="parameter"><code>object</code></em>
904and <em class="parameter"><code>parent</code></em>
905are the same.</p>
906<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
907's LOCK.</p>
908</div>
909</div>
910<hr>
911<div class="refsect2">
912<a name="gst-object-get-parent"></a><h3>gst_object_get_parent ()</h3>
913<pre class="programlisting"><a class="link" href="GstObject.html" title="GstObject"><span class="returnvalue">GstObject</span></a> *
914gst_object_get_parent (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
915<p>Returns the parent of <em class="parameter"><code>object</code></em>
916. This function increases the refcount
917of the parent object so you should <a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> it after usage.</p>
918<div class="refsect3">
919<a name="gst-object-get-parent.parameters"></a><h4>Parameters</h4>
920<div class="informaltable"><table class="informaltable" width="100%" border="0">
921<colgroup>
922<col width="150px" class="parameters_name">
923<col class="parameters_description">
924<col width="200px" class="parameters_annotations">
925</colgroup>
926<tbody><tr>
927<td class="parameter_name"><p>object</p></td>
928<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
929<td class="parameter_annotations"> </td>
930</tr></tbody>
931</table></div>
932</div>
933<div class="refsect3">
934<a name="gst-object-get-parent.returns"></a><h4>Returns</h4>
935<p>parent of <em class="parameter"><code>object</code></em>
936, this can be
937<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>object</code></em>
938has no parent. unref after usage.</p>
939<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
940's LOCK. </p>
941<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
942</div>
943</div>
944<hr>
945<div class="refsect2">
946<a name="gst-object-has-as-parent"></a><h3>gst_object_has_as_parent ()</h3>
947<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
948gst_object_has_as_parent (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
949                          <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *parent</code></em>);</pre>
950<p>Check if <em class="parameter"><code>parent</code></em>
951 is the parent of <em class="parameter"><code>object</code></em>
952.
953E.g. a <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a> can check if it owns a given <a class="link" href="GstPad.html" title="GstPad"><span class="type">GstPad</span></a>.</p>
954<div class="refsect3">
955<a name="gst-object-has-as-parent.parameters"></a><h4>Parameters</h4>
956<div class="informaltable"><table class="informaltable" width="100%" border="0">
957<colgroup>
958<col width="150px" class="parameters_name">
959<col class="parameters_description">
960<col width="200px" class="parameters_annotations">
961</colgroup>
962<tbody>
963<tr>
964<td class="parameter_name"><p>object</p></td>
965<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check</p></td>
966<td class="parameter_annotations"> </td>
967</tr>
968<tr>
969<td class="parameter_name"><p>parent</p></td>
970<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check as parent</p></td>
971<td class="parameter_annotations"> </td>
972</tr>
973</tbody>
974</table></div>
975</div>
976<div class="refsect3">
977<a name="gst-object-has-as-parent.returns"></a><h4>Returns</h4>
978<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if either <em class="parameter"><code>object</code></em>
979or <em class="parameter"><code>parent</code></em>
980is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>parent</code></em>
981is
982the parent of <em class="parameter"><code>object</code></em>
983. Otherwise <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
984<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
985's locks.</p>
986</div>
987<p class="since">Since: <a class="link" href="ix07.html#api-index-1.6">1.6</a></p>
988</div>
989<hr>
990<div class="refsect2">
991<a name="gst-object-unparent"></a><h3>gst_object_unparent ()</h3>
992<pre class="programlisting"><span class="returnvalue">void</span>
993gst_object_unparent (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
994<p>Clear the parent of <em class="parameter"><code>object</code></em>
995, removing the associated reference.
996This function decreases the refcount of <em class="parameter"><code>object</code></em>
997.</p>
998<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
999's lock.</p>
1000<div class="refsect3">
1001<a name="gst-object-unparent.parameters"></a><h4>Parameters</h4>
1002<div class="informaltable"><table class="informaltable" width="100%" border="0">
1003<colgroup>
1004<col width="150px" class="parameters_name">
1005<col class="parameters_description">
1006<col width="200px" class="parameters_annotations">
1007</colgroup>
1008<tbody><tr>
1009<td class="parameter_name"><p>object</p></td>
1010<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to unparent</p></td>
1011<td class="parameter_annotations"> </td>
1012</tr></tbody>
1013</table></div>
1014</div>
1015</div>
1016<hr>
1017<div class="refsect2">
1018<a name="gst-object-default-deep-notify"></a><h3>gst_object_default_deep_notify ()</h3>
1019<pre class="programlisting"><span class="returnvalue">void</span>
1020gst_object_default_deep_notify (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> *object</code></em>,
1021                                <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *orig</code></em>,
1022                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> *pspec</code></em>,
1023                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **excluded_props</code></em>);</pre>
1024<p>A default deep_notify signal callback for an object. The user data
1025should contain a pointer to an array of strings that should be excluded
1026from the notify. The default handler will print the new value of the property
1027using g_print.</p>
1028<p>MT safe. This function grabs and releases <em class="parameter"><code>object</code></em>
1029's LOCK for getting its
1030         path string.</p>
1031<div class="refsect3">
1032<a name="gst-object-default-deep-notify.parameters"></a><h4>Parameters</h4>
1033<div class="informaltable"><table class="informaltable" width="100%" border="0">
1034<colgroup>
1035<col width="150px" class="parameters_name">
1036<col class="parameters_description">
1037<col width="200px" class="parameters_annotations">
1038</colgroup>
1039<tbody>
1040<tr>
1041<td class="parameter_name"><p>object</p></td>
1042<td class="parameter_description"><p>the <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> that signalled the notify.</p></td>
1043<td class="parameter_annotations"> </td>
1044</tr>
1045<tr>
1046<td class="parameter_name"><p>orig</p></td>
1047<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> that initiated the notify.</p></td>
1048<td class="parameter_annotations"> </td>
1049</tr>
1050<tr>
1051<td class="parameter_name"><p>pspec</p></td>
1052<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> of the property.</p></td>
1053<td class="parameter_annotations"> </td>
1054</tr>
1055<tr>
1056<td class="parameter_name"><p>excluded_props</p></td>
1057<td class="parameter_description"><p>a set of user-specified properties to exclude or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to show
1058all changes. </p></td>
1059<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> gchar*][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1060</tr>
1061</tbody>
1062</table></div>
1063</div>
1064</div>
1065<hr>
1066<div class="refsect2">
1067<a name="gst-object-default-error"></a><h3>gst_object_default_error ()</h3>
1068<pre class="programlisting"><span class="returnvalue">void</span>
1069gst_object_default_error (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *source</code></em>,
1070                          <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>,
1071                          <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *debug</code></em>);</pre>
1072<p>A default error function that uses <a href="/usr/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-printerr"><code class="function">g_printerr()</code></a> to display the error message
1073and the optional debug string..</p>
1074<p>The default handler will simply print the error string using g_print.</p>
1075<div class="refsect3">
1076<a name="gst-object-default-error.parameters"></a><h4>Parameters</h4>
1077<div class="informaltable"><table class="informaltable" width="100%" border="0">
1078<colgroup>
1079<col width="150px" class="parameters_name">
1080<col class="parameters_description">
1081<col width="200px" class="parameters_annotations">
1082</colgroup>
1083<tbody>
1084<tr>
1085<td class="parameter_name"><p>source</p></td>
1086<td class="parameter_description"><p>the <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> that initiated the error.</p></td>
1087<td class="parameter_annotations"> </td>
1088</tr>
1089<tr>
1090<td class="parameter_name"><p>error</p></td>
1091<td class="parameter_description"><p>the GError. </p></td>
1092<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
1093</tr>
1094<tr>
1095<td class="parameter_name"><p>debug</p></td>
1096<td class="parameter_description"><p>an additional debug information string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
1097<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1098</tr>
1099</tbody>
1100</table></div>
1101</div>
1102</div>
1103<hr>
1104<div class="refsect2">
1105<a name="gst-object-check-uniqueness"></a><h3>gst_object_check_uniqueness ()</h3>
1106<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1107gst_object_check_uniqueness (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *list</code></em>,
1108                             <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
1109<p>Checks to see if there is any object named <em class="parameter"><code>name</code></em>
1110 in <em class="parameter"><code>list</code></em>
1111. This function
1112does not do any locking of any kind. You might want to protect the
1113provided list with the lock of the owner of the list. This function
1114will lock each <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> in the list to compare the name, so be
1115careful when passing a list with a locked object.</p>
1116<div class="refsect3">
1117<a name="gst-object-check-uniqueness.parameters"></a><h4>Parameters</h4>
1118<div class="informaltable"><table class="informaltable" width="100%" border="0">
1119<colgroup>
1120<col width="150px" class="parameters_name">
1121<col class="parameters_description">
1122<col width="200px" class="parameters_annotations">
1123</colgroup>
1124<tbody>
1125<tr>
1126<td class="parameter_name"><p>list</p></td>
1127<td class="parameter_description"><p>a list of <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to
1128check through. </p></td>
1129<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.Object]</span></td>
1130</tr>
1131<tr>
1132<td class="parameter_name"><p>name</p></td>
1133<td class="parameter_description"><p>the name to search for</p></td>
1134<td class="parameter_annotations"> </td>
1135</tr>
1136</tbody>
1137</table></div>
1138</div>
1139<div class="refsect3">
1140<a name="gst-object-check-uniqueness.returns"></a><h4>Returns</h4>
1141<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> named <em class="parameter"><code>name</code></em>
1142does not appear in <em class="parameter"><code>list</code></em>
1143,
1144<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it does.</p>
1145<p>MT safe. Grabs and releases the LOCK of each object in the list.</p>
1146</div>
1147</div>
1148<hr>
1149<div class="refsect2">
1150<a name="gst-object-has-as-ancestor"></a><h3>gst_object_has_as_ancestor ()</h3>
1151<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1152gst_object_has_as_ancestor (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1153                            <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *ancestor</code></em>);</pre>
1154<p>Check if <em class="parameter"><code>object</code></em>
1155 has an ancestor <em class="parameter"><code>ancestor</code></em>
1156 somewhere up in
1157the hierarchy. One can e.g. check if a <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a> is inside a <a class="link" href="GstPipeline.html" title="GstPipeline"><span class="type">GstPipeline</span></a>.</p>
1158<div class="refsect3">
1159<a name="gst-object-has-as-ancestor.parameters"></a><h4>Parameters</h4>
1160<div class="informaltable"><table class="informaltable" width="100%" border="0">
1161<colgroup>
1162<col width="150px" class="parameters_name">
1163<col class="parameters_description">
1164<col width="200px" class="parameters_annotations">
1165</colgroup>
1166<tbody>
1167<tr>
1168<td class="parameter_name"><p>object</p></td>
1169<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check</p></td>
1170<td class="parameter_annotations"> </td>
1171</tr>
1172<tr>
1173<td class="parameter_name"><p>ancestor</p></td>
1174<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check as ancestor</p></td>
1175<td class="parameter_annotations"> </td>
1176</tr>
1177</tbody>
1178</table></div>
1179</div>
1180<div class="refsect3">
1181<a name="gst-object-has-as-ancestor.returns"></a><h4>Returns</h4>
1182<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>ancestor</code></em>
1183is an ancestor of <em class="parameter"><code>object</code></em>
1184.</p>
1185<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
1186's locks.</p>
1187</div>
1188</div>
1189<hr>
1190<div class="refsect2">
1191<a name="gst-object-has-ancestor"></a><h3>gst_object_has_ancestor ()</h3>
1192<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1193gst_object_has_ancestor (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1194                         <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *ancestor</code></em>);</pre>
1195<div class="warning">
1196<p><code class="literal">gst_object_has_ancestor</code> is deprecated and should not be used in newly-written code.</p>
1197<p>Use <a class="link" href="GstObject.html#gst-object-has-as-ancestor" title="gst_object_has_as_ancestor ()"><code class="function">gst_object_has_as_ancestor()</code></a> instead.</p>
1198<p>MT safe. Grabs and releases <em class="parameter"><code>object</code></em>
1199's locks.</p>
1200</div>
1201<p>Check if <em class="parameter"><code>object</code></em>
1202 has an ancestor <em class="parameter"><code>ancestor</code></em>
1203 somewhere up in
1204the hierarchy. One can e.g. check if a <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a> is inside a <a class="link" href="GstPipeline.html" title="GstPipeline"><span class="type">GstPipeline</span></a>.</p>
1205<div class="refsect3">
1206<a name="gst-object-has-ancestor.parameters"></a><h4>Parameters</h4>
1207<div class="informaltable"><table class="informaltable" width="100%" border="0">
1208<colgroup>
1209<col width="150px" class="parameters_name">
1210<col class="parameters_description">
1211<col width="200px" class="parameters_annotations">
1212</colgroup>
1213<tbody>
1214<tr>
1215<td class="parameter_name"><p>object</p></td>
1216<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check</p></td>
1217<td class="parameter_annotations"> </td>
1218</tr>
1219<tr>
1220<td class="parameter_name"><p>ancestor</p></td>
1221<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to check as ancestor</p></td>
1222<td class="parameter_annotations"> </td>
1223</tr>
1224</tbody>
1225</table></div>
1226</div>
1227<div class="refsect3">
1228<a name="gst-object-has-ancestor.returns"></a><h4>Returns</h4>
1229<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>ancestor</code></em>
1230is an ancestor of <em class="parameter"><code>object</code></em>
1231.</p>
1232</div>
1233</div>
1234<hr>
1235<div class="refsect2">
1236<a name="gst-object-ref"></a><h3>gst_object_ref ()</h3>
1237<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
1238gst_object_ref (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> object</code></em>);</pre>
1239<p>Increments the reference count on <em class="parameter"><code>object</code></em>
1240. This function
1241does not take the lock on <em class="parameter"><code>object</code></em>
1242 because it relies on
1243atomic refcounting.</p>
1244<p>This object returns the input parameter to ease writing
1245constructs like :
1246 result = gst_object_ref (object-&gt;parent);</p>
1247<div class="refsect3">
1248<a name="gst-object-ref.parameters"></a><h4>Parameters</h4>
1249<div class="informaltable"><table class="informaltable" width="100%" border="0">
1250<colgroup>
1251<col width="150px" class="parameters_name">
1252<col class="parameters_description">
1253<col width="200px" class="parameters_annotations">
1254</colgroup>
1255<tbody><tr>
1256<td class="parameter_name"><p>object</p></td>
1257<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to reference. </p></td>
1258<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Gst.Object]</span></td>
1259</tr></tbody>
1260</table></div>
1261</div>
1262<div class="refsect3">
1263<a name="gst-object-ref.returns"></a><h4>Returns</h4>
1264<p>A pointer to <em class="parameter"><code>object</code></em>
1265. </p>
1266<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Gst.Object]</span></p>
1267</div>
1268</div>
1269<hr>
1270<div class="refsect2">
1271<a name="gst-object-unref"></a><h3>gst_object_unref ()</h3>
1272<pre class="programlisting"><span class="returnvalue">void</span>
1273gst_object_unref (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> object</code></em>);</pre>
1274<p>Decrements the reference count on <em class="parameter"><code>object</code></em>
1275.  If reference count hits
1276zero, destroy <em class="parameter"><code>object</code></em>
1277. This function does not take the lock
1278on <em class="parameter"><code>object</code></em>
1279 as it relies on atomic refcounting.</p>
1280<p>The unref method should never be called with the LOCK held since
1281this might deadlock the dispose function.</p>
1282<div class="refsect3">
1283<a name="gst-object-unref.parameters"></a><h4>Parameters</h4>
1284<div class="informaltable"><table class="informaltable" width="100%" border="0">
1285<colgroup>
1286<col width="150px" class="parameters_name">
1287<col class="parameters_description">
1288<col width="200px" class="parameters_annotations">
1289</colgroup>
1290<tbody><tr>
1291<td class="parameter_name"><p>object</p></td>
1292<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to unreference. </p></td>
1293<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> Gst.Object]</span></td>
1294</tr></tbody>
1295</table></div>
1296</div>
1297</div>
1298<hr>
1299<div class="refsect2">
1300<a name="gst-clear-object"></a><h3>gst_clear_object ()</h3>
1301<pre class="programlisting"><span class="returnvalue">void</span>
1302gst_clear_object (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> **object_ptr</code></em>);</pre>
1303<p>Clears a reference to a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>.</p>
1304<p><em class="parameter"><code>object_ptr</code></em>
1305 must not be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
1306<p>If the reference is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then this function does nothing.
1307Otherwise, the reference count of the object is decreased using
1308<a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> and the pointer is set to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
1309<p>A macro is also included that allows this function to be used without
1310pointer casts.</p>
1311<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
1312<div class="refsect3">
1313<a name="gst-clear-object.parameters"></a><h4>Parameters</h4>
1314<div class="informaltable"><table class="informaltable" width="100%" border="0">
1315<colgroup>
1316<col width="150px" class="parameters_name">
1317<col class="parameters_description">
1318<col width="200px" class="parameters_annotations">
1319</colgroup>
1320<tbody><tr>
1321<td class="parameter_name"><p>object_ptr</p></td>
1322<td class="parameter_description"><p>a pointer to a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> reference</p></td>
1323<td class="parameter_annotations"> </td>
1324</tr></tbody>
1325</table></div>
1326</div>
1327<p class="since">Since: 1.16</p>
1328</div>
1329<hr>
1330<div class="refsect2">
1331<a name="gst-object-ref-sink"></a><h3>gst_object_ref_sink ()</h3>
1332<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
1333gst_object_ref_sink (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> object</code></em>);</pre>
1334<p>Increase the reference count of <em class="parameter"><code>object</code></em>
1335, and possibly remove the floating
1336reference, if <em class="parameter"><code>object</code></em>
1337 has a floating reference.</p>
1338<p>In other words, if the object is floating, then this call "assumes ownership"
1339of the floating reference, converting it to a normal reference by clearing
1340the floating flag while leaving the reference count unchanged. If the object
1341is not floating, then this call adds a new normal reference increasing the
1342reference count by one.</p>
1343<p>For more background on "floating references" please see the <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
1344documentation.</p>
1345<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
1346<div class="refsect3">
1347<a name="gst-object-ref-sink.parameters"></a><h4>Parameters</h4>
1348<div class="informaltable"><table class="informaltable" width="100%" border="0">
1349<colgroup>
1350<col width="150px" class="parameters_name">
1351<col class="parameters_description">
1352<col width="200px" class="parameters_annotations">
1353</colgroup>
1354<tbody><tr>
1355<td class="parameter_name"><p>object</p></td>
1356<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to sink</p></td>
1357<td class="parameter_annotations"> </td>
1358</tr></tbody>
1359</table></div>
1360</div>
1361</div>
1362<hr>
1363<div class="refsect2">
1364<a name="gst-object-replace"></a><h3>gst_object_replace ()</h3>
1365<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1366gst_object_replace (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> **oldobj</code></em>,
1367                    <em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *newobj</code></em>);</pre>
1368<p>Atomically modifies a pointer to point to a new object.
1369The reference count of <em class="parameter"><code>oldobj</code></em>
1370 is decreased and the reference count of
1371<em class="parameter"><code>newobj</code></em>
1372 is increased.</p>
1373<p>Either <em class="parameter"><code>newobj</code></em>
1374 and the value pointed to by <em class="parameter"><code>oldobj</code></em>
1375 may be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
1376<div class="refsect3">
1377<a name="gst-object-replace.parameters"></a><h4>Parameters</h4>
1378<div class="informaltable"><table class="informaltable" width="100%" border="0">
1379<colgroup>
1380<col width="150px" class="parameters_name">
1381<col class="parameters_description">
1382<col width="200px" class="parameters_annotations">
1383</colgroup>
1384<tbody>
1385<tr>
1386<td class="parameter_name"><p>oldobj</p></td>
1387<td class="parameter_description"><p>pointer to a place of
1388a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> to replace. </p></td>
1389<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
1390</tr>
1391<tr>
1392<td class="parameter_name"><p>newobj</p></td>
1393<td class="parameter_description"><p>a new <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>. </p></td>
1394<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1395</tr>
1396</tbody>
1397</table></div>
1398</div>
1399<div class="refsect3">
1400<a name="gst-object-replace.returns"></a><h4>Returns</h4>
1401<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>newobj</code></em>
1402was different from <em class="parameter"><code>oldobj</code></em>
1403</p>
1404</div>
1405</div>
1406<hr>
1407<div class="refsect2">
1408<a name="gst-object-get-path-string"></a><h3>gst_object_get_path_string ()</h3>
1409<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
1410gst_object_get_path_string (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
1411<p>Generates a string describing the path of <em class="parameter"><code>object</code></em>
1412 in
1413the object hierarchy. Only useful (or used) for debugging.</p>
1414<p>Free-function: g_free</p>
1415<div class="refsect3">
1416<a name="gst-object-get-path-string.parameters"></a><h4>Parameters</h4>
1417<div class="informaltable"><table class="informaltable" width="100%" border="0">
1418<colgroup>
1419<col width="150px" class="parameters_name">
1420<col class="parameters_description">
1421<col width="200px" class="parameters_annotations">
1422</colgroup>
1423<tbody><tr>
1424<td class="parameter_name"><p>object</p></td>
1425<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
1426<td class="parameter_annotations"> </td>
1427</tr></tbody>
1428</table></div>
1429</div>
1430<div class="refsect3">
1431<a name="gst-object-get-path-string.returns"></a><h4>Returns</h4>
1432<p>a string describing the path of <em class="parameter"><code>object</code></em>
1433. You must
1434<a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> the string after usage.</p>
1435<p>MT safe. Grabs and releases the <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>'s LOCK for all objects
1436in the hierarchy. </p>
1437<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1438</div>
1439</div>
1440<hr>
1441<div class="refsect2">
1442<a name="gst-object-suggest-next-sync"></a><h3>gst_object_suggest_next_sync ()</h3>
1443<pre class="programlisting"><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="returnvalue">GstClockTime</span></a>
1444gst_object_suggest_next_sync (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
1445<p>Returns a suggestion for timestamps where buffers should be split
1446to get best controller results.</p>
1447<div class="refsect3">
1448<a name="gst-object-suggest-next-sync.parameters"></a><h4>Parameters</h4>
1449<div class="informaltable"><table class="informaltable" width="100%" border="0">
1450<colgroup>
1451<col width="150px" class="parameters_name">
1452<col class="parameters_description">
1453<col width="200px" class="parameters_annotations">
1454</colgroup>
1455<tbody><tr>
1456<td class="parameter_name"><p>object</p></td>
1457<td class="parameter_description"><p>the object that has controlled properties</p></td>
1458<td class="parameter_annotations"> </td>
1459</tr></tbody>
1460</table></div>
1461</div>
1462<div class="refsect3">
1463<a name="gst-object-suggest-next-sync.returns"></a><h4>Returns</h4>
1464<p> Returns the suggested timestamp or <a class="link" href="GstClock.html#GST-CLOCK-TIME-NONE:CAPS" title="GST_CLOCK_TIME_NONE"><code class="literal">GST_CLOCK_TIME_NONE</code></a>
1465if no control-rate was set.</p>
1466</div>
1467</div>
1468<hr>
1469<div class="refsect2">
1470<a name="gst-object-sync-values"></a><h3>gst_object_sync_values ()</h3>
1471<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1472gst_object_sync_values (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1473                        <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>);</pre>
1474<p>Sets the properties of the object, according to the <a href="GstControlSource.html#GstControlSource-struct"><span class="type">GstControlSources</span></a> that
1475(maybe) handle them and for the given timestamp.</p>
1476<p>If this function fails, it is most likely the application developers fault.
1477Most probably the control sources are not setup correctly.</p>
1478<div class="refsect3">
1479<a name="gst-object-sync-values.parameters"></a><h4>Parameters</h4>
1480<div class="informaltable"><table class="informaltable" width="100%" border="0">
1481<colgroup>
1482<col width="150px" class="parameters_name">
1483<col class="parameters_description">
1484<col width="200px" class="parameters_annotations">
1485</colgroup>
1486<tbody>
1487<tr>
1488<td class="parameter_name"><p>object</p></td>
1489<td class="parameter_description"><p>the object that has controlled properties</p></td>
1490<td class="parameter_annotations"> </td>
1491</tr>
1492<tr>
1493<td class="parameter_name"><p>timestamp</p></td>
1494<td class="parameter_description"><p>the time that should be processed</p></td>
1495<td class="parameter_annotations"> </td>
1496</tr>
1497</tbody>
1498</table></div>
1499</div>
1500<div class="refsect3">
1501<a name="gst-object-sync-values.returns"></a><h4>Returns</h4>
1502<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the controller values could be applied to the object
1503properties, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
1504</div>
1505</div>
1506<hr>
1507<div class="refsect2">
1508<a name="gst-object-has-active-control-bindings"></a><h3>gst_object_has_active_control_bindings ()</h3>
1509<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1510gst_object_has_active_control_bindings
1511                               (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
1512<p>Check if the <em class="parameter"><code>object</code></em>
1513 has active controlled properties.</p>
1514<div class="refsect3">
1515<a name="gst-object-has-active-control-bindings.parameters"></a><h4>Parameters</h4>
1516<div class="informaltable"><table class="informaltable" width="100%" border="0">
1517<colgroup>
1518<col width="150px" class="parameters_name">
1519<col class="parameters_description">
1520<col width="200px" class="parameters_annotations">
1521</colgroup>
1522<tbody><tr>
1523<td class="parameter_name"><p>object</p></td>
1524<td class="parameter_description"><p>the object that has controlled properties</p></td>
1525<td class="parameter_annotations"> </td>
1526</tr></tbody>
1527</table></div>
1528</div>
1529<div class="refsect3">
1530<a name="gst-object-has-active-control-bindings.returns"></a><h4>Returns</h4>
1531<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the object has active controlled properties</p>
1532</div>
1533</div>
1534<hr>
1535<div class="refsect2">
1536<a name="gst-object-set-control-bindings-disabled"></a><h3>gst_object_set_control_bindings_disabled ()</h3>
1537<pre class="programlisting"><span class="returnvalue">void</span>
1538gst_object_set_control_bindings_disabled
1539                               (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1540                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> disabled</code></em>);</pre>
1541<p>This function is used to disable all controlled properties of the <em class="parameter"><code>object</code></em>
1542 for
1543some time, i.e. <a class="link" href="GstObject.html#gst-object-sync-values" title="gst_object_sync_values ()"><code class="function">gst_object_sync_values()</code></a> will do nothing.</p>
1544<div class="refsect3">
1545<a name="gst-object-set-control-bindings-disabled.parameters"></a><h4>Parameters</h4>
1546<div class="informaltable"><table class="informaltable" width="100%" border="0">
1547<colgroup>
1548<col width="150px" class="parameters_name">
1549<col class="parameters_description">
1550<col width="200px" class="parameters_annotations">
1551</colgroup>
1552<tbody>
1553<tr>
1554<td class="parameter_name"><p>object</p></td>
1555<td class="parameter_description"><p>the object that has controlled properties</p></td>
1556<td class="parameter_annotations"> </td>
1557</tr>
1558<tr>
1559<td class="parameter_name"><p>disabled</p></td>
1560<td class="parameter_description"><p>boolean that specifies whether to disable the controller
1561or not.</p></td>
1562<td class="parameter_annotations"> </td>
1563</tr>
1564</tbody>
1565</table></div>
1566</div>
1567</div>
1568<hr>
1569<div class="refsect2">
1570<a name="gst-object-set-control-binding-disabled"></a><h3>gst_object_set_control_binding_disabled ()</h3>
1571<pre class="programlisting"><span class="returnvalue">void</span>
1572gst_object_set_control_binding_disabled
1573                               (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1574                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
1575                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> disabled</code></em>);</pre>
1576<p>This function is used to disable the control bindings on a property for
1577some time, i.e. <a class="link" href="GstObject.html#gst-object-sync-values" title="gst_object_sync_values ()"><code class="function">gst_object_sync_values()</code></a> will do nothing for the
1578property.</p>
1579<div class="refsect3">
1580<a name="gst-object-set-control-binding-disabled.parameters"></a><h4>Parameters</h4>
1581<div class="informaltable"><table class="informaltable" width="100%" border="0">
1582<colgroup>
1583<col width="150px" class="parameters_name">
1584<col class="parameters_description">
1585<col width="200px" class="parameters_annotations">
1586</colgroup>
1587<tbody>
1588<tr>
1589<td class="parameter_name"><p>object</p></td>
1590<td class="parameter_description"><p>the object that has controlled properties</p></td>
1591<td class="parameter_annotations"> </td>
1592</tr>
1593<tr>
1594<td class="parameter_name"><p>property_name</p></td>
1595<td class="parameter_description"><p>property to disable</p></td>
1596<td class="parameter_annotations"> </td>
1597</tr>
1598<tr>
1599<td class="parameter_name"><p>disabled</p></td>
1600<td class="parameter_description"><p>boolean that specifies whether to disable the controller
1601or not.</p></td>
1602<td class="parameter_annotations"> </td>
1603</tr>
1604</tbody>
1605</table></div>
1606</div>
1607</div>
1608<hr>
1609<div class="refsect2">
1610<a name="gst-object-add-control-binding"></a><h3>gst_object_add_control_binding ()</h3>
1611<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1612gst_object_add_control_binding (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1613                                <em class="parameter"><code><a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> *binding</code></em>);</pre>
1614<p>Attach the <a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> to the object. If there already was a
1615<a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> for this property it will be replaced.</p>
1616<p>The object's reference count will be incremented, and any floating
1617reference will be removed (see <a class="link" href="GstObject.html#gst-object-ref-sink" title="gst_object_ref_sink ()"><code class="function">gst_object_ref_sink()</code></a>)</p>
1618<div class="refsect3">
1619<a name="gst-object-add-control-binding.parameters"></a><h4>Parameters</h4>
1620<div class="informaltable"><table class="informaltable" width="100%" border="0">
1621<colgroup>
1622<col width="150px" class="parameters_name">
1623<col class="parameters_description">
1624<col width="200px" class="parameters_annotations">
1625</colgroup>
1626<tbody>
1627<tr>
1628<td class="parameter_name"><p>object</p></td>
1629<td class="parameter_description"><p>the controller object</p></td>
1630<td class="parameter_annotations"> </td>
1631</tr>
1632<tr>
1633<td class="parameter_name"><p>binding</p></td>
1634<td class="parameter_description"><p>the <a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> that should be used. </p></td>
1635<td class="parameter_annotations"><span class="annotation">[<acronym title="Alias for transfer none, used for objects with floating refs."><span class="acronym">transfer floating</span></acronym>]</span></td>
1636</tr>
1637</tbody>
1638</table></div>
1639</div>
1640<div class="refsect3">
1641<a name="gst-object-add-control-binding.returns"></a><h4>Returns</h4>
1642<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the given <em class="parameter"><code>binding</code></em>
1643has not been setup for this object or
1644has been setup for a non suitable property, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> otherwise.</p>
1645</div>
1646</div>
1647<hr>
1648<div class="refsect2">
1649<a name="gst-object-get-control-binding"></a><h3>gst_object_get_control_binding ()</h3>
1650<pre class="programlisting"><a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="returnvalue">GstControlBinding</span></a> *
1651gst_object_get_control_binding (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1652                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>);</pre>
1653<p>Gets the corresponding <a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> for the property. This should be
1654unreferenced again after use.</p>
1655<div class="refsect3">
1656<a name="gst-object-get-control-binding.parameters"></a><h4>Parameters</h4>
1657<div class="informaltable"><table class="informaltable" width="100%" border="0">
1658<colgroup>
1659<col width="150px" class="parameters_name">
1660<col class="parameters_description">
1661<col width="200px" class="parameters_annotations">
1662</colgroup>
1663<tbody>
1664<tr>
1665<td class="parameter_name"><p>object</p></td>
1666<td class="parameter_description"><p>the object</p></td>
1667<td class="parameter_annotations"> </td>
1668</tr>
1669<tr>
1670<td class="parameter_name"><p>property_name</p></td>
1671<td class="parameter_description"><p>name of the property</p></td>
1672<td class="parameter_annotations"> </td>
1673</tr>
1674</tbody>
1675</table></div>
1676</div>
1677<div class="refsect3">
1678<a name="gst-object-get-control-binding.returns"></a><h4>Returns</h4>
1679<p>the <a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> for
1680<em class="parameter"><code>property_name</code></em>
1681or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not controlled. </p>
1682<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1683</div>
1684</div>
1685<hr>
1686<div class="refsect2">
1687<a name="gst-object-remove-control-binding"></a><h3>gst_object_remove_control_binding ()</h3>
1688<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1689gst_object_remove_control_binding (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1690                                   <em class="parameter"><code><a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a> *binding</code></em>);</pre>
1691<p>Removes the corresponding <a class="link" href="GstControlBinding.html" title="GstControlBinding"><span class="type">GstControlBinding</span></a>. If it was the
1692last ref of the binding, it will be disposed.</p>
1693<div class="refsect3">
1694<a name="gst-object-remove-control-binding.parameters"></a><h4>Parameters</h4>
1695<div class="informaltable"><table class="informaltable" width="100%" border="0">
1696<colgroup>
1697<col width="150px" class="parameters_name">
1698<col class="parameters_description">
1699<col width="200px" class="parameters_annotations">
1700</colgroup>
1701<tbody>
1702<tr>
1703<td class="parameter_name"><p>object</p></td>
1704<td class="parameter_description"><p>the object</p></td>
1705<td class="parameter_annotations"> </td>
1706</tr>
1707<tr>
1708<td class="parameter_name"><p>binding</p></td>
1709<td class="parameter_description"><p>the binding</p></td>
1710<td class="parameter_annotations"> </td>
1711</tr>
1712</tbody>
1713</table></div>
1714</div>
1715<div class="refsect3">
1716<a name="gst-object-remove-control-binding.returns"></a><h4>Returns</h4>
1717<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the binding could be removed.</p>
1718</div>
1719</div>
1720<hr>
1721<div class="refsect2">
1722<a name="gst-object-get-value"></a><h3>gst_object_get_value ()</h3>
1723<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="returnvalue">GValue</span></a> *
1724gst_object_get_value (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1725                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
1726                      <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>);</pre>
1727<p>Gets the value for the given controlled property at the requested time.</p>
1728<div class="refsect3">
1729<a name="gst-object-get-value.parameters"></a><h4>Parameters</h4>
1730<div class="informaltable"><table class="informaltable" width="100%" border="0">
1731<colgroup>
1732<col width="150px" class="parameters_name">
1733<col class="parameters_description">
1734<col width="200px" class="parameters_annotations">
1735</colgroup>
1736<tbody>
1737<tr>
1738<td class="parameter_name"><p>object</p></td>
1739<td class="parameter_description"><p>the object that has controlled properties</p></td>
1740<td class="parameter_annotations"> </td>
1741</tr>
1742<tr>
1743<td class="parameter_name"><p>property_name</p></td>
1744<td class="parameter_description"><p>the name of the property to get</p></td>
1745<td class="parameter_annotations"> </td>
1746</tr>
1747<tr>
1748<td class="parameter_name"><p>timestamp</p></td>
1749<td class="parameter_description"><p>the time the control-change should be read from</p></td>
1750<td class="parameter_annotations"> </td>
1751</tr>
1752</tbody>
1753</table></div>
1754</div>
1755<div class="refsect3">
1756<a name="gst-object-get-value.returns"></a><h4>Returns</h4>
1757<p>the GValue of the property at the given time,
1758or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property isn't controlled. </p>
1759<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1760</div>
1761</div>
1762<hr>
1763<div class="refsect2">
1764<a name="gst-object-get-value-array"></a><h3>gst_object_get_value_array ()</h3>
1765<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1766gst_object_get_value_array (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1767                            <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
1768                            <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>,
1769                            <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> interval</code></em>,
1770                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_values</code></em>,
1771                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> values</code></em>);</pre>
1772<p>Gets a number of values for the given controlled property starting at the
1773requested time. The array <em class="parameter"><code>values</code></em>
1774 need to hold enough space for <em class="parameter"><code>n_values</code></em>
1775 of
1776the same type as the objects property's type.</p>
1777<p>This function is useful if one wants to e.g. draw a graph of the control
1778curve or apply a control curve sample by sample.</p>
1779<p>The values are unboxed and ready to be used. The similar function
1780<a class="link" href="GstObject.html#gst-object-get-g-value-array" title="gst_object_get_g_value_array ()"><code class="function">gst_object_get_g_value_array()</code></a> returns the array as <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValues</span></a> and is
1781better suites for bindings.</p>
1782<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
1783<div class="refsect3">
1784<a name="gst-object-get-value-array.parameters"></a><h4>Parameters</h4>
1785<div class="informaltable"><table class="informaltable" width="100%" border="0">
1786<colgroup>
1787<col width="150px" class="parameters_name">
1788<col class="parameters_description">
1789<col width="200px" class="parameters_annotations">
1790</colgroup>
1791<tbody>
1792<tr>
1793<td class="parameter_name"><p>object</p></td>
1794<td class="parameter_description"><p>the object that has controlled properties</p></td>
1795<td class="parameter_annotations"> </td>
1796</tr>
1797<tr>
1798<td class="parameter_name"><p>property_name</p></td>
1799<td class="parameter_description"><p>the name of the property to get</p></td>
1800<td class="parameter_annotations"> </td>
1801</tr>
1802<tr>
1803<td class="parameter_name"><p>timestamp</p></td>
1804<td class="parameter_description"><p>the time that should be processed</p></td>
1805<td class="parameter_annotations"> </td>
1806</tr>
1807<tr>
1808<td class="parameter_name"><p>interval</p></td>
1809<td class="parameter_description"><p>the time spacing between subsequent values</p></td>
1810<td class="parameter_annotations"> </td>
1811</tr>
1812<tr>
1813<td class="parameter_name"><p>n_values</p></td>
1814<td class="parameter_description"><p>the number of values</p></td>
1815<td class="parameter_annotations"> </td>
1816</tr>
1817<tr>
1818<td class="parameter_name"><p>values</p></td>
1819<td class="parameter_description"><p>array to put control-values in</p></td>
1820<td class="parameter_annotations"> </td>
1821</tr>
1822</tbody>
1823</table></div>
1824</div>
1825<div class="refsect3">
1826<a name="gst-object-get-value-array.returns"></a><h4>Returns</h4>
1827<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the given array could be filled, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
1828</div>
1829</div>
1830<hr>
1831<div class="refsect2">
1832<a name="gst-object-get-g-value-array"></a><h3>gst_object_get_g_value_array ()</h3>
1833<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1834gst_object_get_g_value_array (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1835                              <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
1836                              <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>,
1837                              <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> interval</code></em>,
1838                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_values</code></em>,
1839                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *values</code></em>);</pre>
1840<p>Gets a number of <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValues</span></a> for the given controlled property starting at the
1841requested time. The array <em class="parameter"><code>values</code></em>
1842 need to hold enough space for <em class="parameter"><code>n_values</code></em>
1843 of
1844<a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a>.</p>
1845<p>This function is useful if one wants to e.g. draw a graph of the control
1846curve or apply a control curve sample by sample.</p>
1847<div class="refsect3">
1848<a name="gst-object-get-g-value-array.parameters"></a><h4>Parameters</h4>
1849<div class="informaltable"><table class="informaltable" width="100%" border="0">
1850<colgroup>
1851<col width="150px" class="parameters_name">
1852<col class="parameters_description">
1853<col width="200px" class="parameters_annotations">
1854</colgroup>
1855<tbody>
1856<tr>
1857<td class="parameter_name"><p>object</p></td>
1858<td class="parameter_description"><p>the object that has controlled properties</p></td>
1859<td class="parameter_annotations"> </td>
1860</tr>
1861<tr>
1862<td class="parameter_name"><p>property_name</p></td>
1863<td class="parameter_description"><p>the name of the property to get</p></td>
1864<td class="parameter_annotations"> </td>
1865</tr>
1866<tr>
1867<td class="parameter_name"><p>timestamp</p></td>
1868<td class="parameter_description"><p>the time that should be processed</p></td>
1869<td class="parameter_annotations"> </td>
1870</tr>
1871<tr>
1872<td class="parameter_name"><p>interval</p></td>
1873<td class="parameter_description"><p>the time spacing between subsequent values</p></td>
1874<td class="parameter_annotations"> </td>
1875</tr>
1876<tr>
1877<td class="parameter_name"><p>n_values</p></td>
1878<td class="parameter_description"><p>the number of values</p></td>
1879<td class="parameter_annotations"> </td>
1880</tr>
1881<tr>
1882<td class="parameter_name"><p>values</p></td>
1883<td class="parameter_description"><p>array to put control-values in. </p></td>
1884<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_values]</span></td>
1885</tr>
1886</tbody>
1887</table></div>
1888</div>
1889<div class="refsect3">
1890<a name="gst-object-get-g-value-array.returns"></a><h4>Returns</h4>
1891<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the given array could be filled, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
1892</div>
1893</div>
1894<hr>
1895<div class="refsect2">
1896<a name="gst-object-get-control-rate"></a><h3>gst_object_get_control_rate ()</h3>
1897<pre class="programlisting"><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="returnvalue">GstClockTime</span></a>
1898gst_object_get_control_rate (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>);</pre>
1899<p>Obtain the control-rate for this <em class="parameter"><code>object</code></em>
1900. Audio processing <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a>
1901objects will use this rate to sub-divide their processing loop and call
1902<a class="link" href="GstObject.html#gst-object-sync-values" title="gst_object_sync_values ()"><code class="function">gst_object_sync_values()</code></a> in between. The length of the processing segment
1903should be up to <em class="parameter"><code>control</code></em>
1904-rate nanoseconds.</p>
1905<p>If the <em class="parameter"><code>object</code></em>
1906 is not under property control, this will return
1907<a class="link" href="GstClock.html#GST-CLOCK-TIME-NONE:CAPS" title="GST_CLOCK_TIME_NONE"><code class="literal">GST_CLOCK_TIME_NONE</code></a>. This allows the element to avoid the sub-dividing.</p>
1908<p>The control-rate is not expected to change if the element is in
1909<a class="link" href="GstElement.html#GST-STATE-PAUSED:CAPS"><code class="literal">GST_STATE_PAUSED</code></a> or <a class="link" href="GstElement.html#GST-STATE-PLAYING:CAPS"><code class="literal">GST_STATE_PLAYING</code></a>.</p>
1910<div class="refsect3">
1911<a name="gst-object-get-control-rate.parameters"></a><h4>Parameters</h4>
1912<div class="informaltable"><table class="informaltable" width="100%" border="0">
1913<colgroup>
1914<col width="150px" class="parameters_name">
1915<col class="parameters_description">
1916<col width="200px" class="parameters_annotations">
1917</colgroup>
1918<tbody><tr>
1919<td class="parameter_name"><p>object</p></td>
1920<td class="parameter_description"><p>the object that has controlled properties</p></td>
1921<td class="parameter_annotations"> </td>
1922</tr></tbody>
1923</table></div>
1924</div>
1925<div class="refsect3">
1926<a name="gst-object-get-control-rate.returns"></a><h4>Returns</h4>
1927<p> the control rate in nanoseconds</p>
1928</div>
1929</div>
1930<hr>
1931<div class="refsect2">
1932<a name="gst-object-set-control-rate"></a><h3>gst_object_set_control_rate ()</h3>
1933<pre class="programlisting"><span class="returnvalue">void</span>
1934gst_object_set_control_rate (<em class="parameter"><code><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *object</code></em>,
1935                             <em class="parameter"><code><a class="link" href="GstClock.html#GstClockTime" title="GstClockTime"><span class="type">GstClockTime</span></a> control_rate</code></em>);</pre>
1936<p>Change the control-rate for this <em class="parameter"><code>object</code></em>
1937. Audio processing <a class="link" href="GstElement.html" title="GstElement"><span class="type">GstElement</span></a>
1938objects will use this rate to sub-divide their processing loop and call
1939<a class="link" href="GstObject.html#gst-object-sync-values" title="gst_object_sync_values ()"><code class="function">gst_object_sync_values()</code></a> in between. The length of the processing segment
1940should be up to <em class="parameter"><code>control</code></em>
1941-rate nanoseconds.</p>
1942<p>The control-rate should not change if the element is in <a class="link" href="GstElement.html#GST-STATE-PAUSED:CAPS"><code class="literal">GST_STATE_PAUSED</code></a> or
1943<a class="link" href="GstElement.html#GST-STATE-PLAYING:CAPS"><code class="literal">GST_STATE_PLAYING</code></a>.</p>
1944<div class="refsect3">
1945<a name="gst-object-set-control-rate.parameters"></a><h4>Parameters</h4>
1946<div class="informaltable"><table class="informaltable" width="100%" border="0">
1947<colgroup>
1948<col width="150px" class="parameters_name">
1949<col class="parameters_description">
1950<col width="200px" class="parameters_annotations">
1951</colgroup>
1952<tbody>
1953<tr>
1954<td class="parameter_name"><p>object</p></td>
1955<td class="parameter_description"><p>the object that has controlled properties</p></td>
1956<td class="parameter_annotations"> </td>
1957</tr>
1958<tr>
1959<td class="parameter_name"><p>control_rate</p></td>
1960<td class="parameter_description"><p>the new control-rate in nanoseconds.</p></td>
1961<td class="parameter_annotations"> </td>
1962</tr>
1963</tbody>
1964</table></div>
1965</div>
1966</div>
1967</div>
1968<div class="refsect1">
1969<a name="GstObject.other_details"></a><h2>Types and Values</h2>
1970<div class="refsect2">
1971<a name="GstObject-struct"></a><h3>struct GstObject</h3>
1972<pre class="programlisting">struct GstObject {
1973  GMutex         lock;        /* object LOCK */
1974  gchar         *name;        /* object name */
1975  GstObject     *parent;      /* this object's parent, weak ref */
1976  guint32        flags;
1977};
1978</pre>
1979<p>GStreamer base object class.</p>
1980<div class="refsect3">
1981<a name="GstObject.members"></a><h4>Members</h4>
1982<div class="informaltable"><table class="informaltable" width="100%" border="0">
1983<colgroup>
1984<col width="300px" class="struct_members_name">
1985<col class="struct_members_description">
1986<col width="200px" class="struct_members_annotations">
1987</colgroup>
1988<tbody>
1989<tr>
1990<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Threads.html#GMutex"><span class="type">GMutex</span></a> <em class="structfield"><code><a name="GstObject-struct.lock"></a>lock</code></em>;</p></td>
1991<td class="struct_member_description"><p>object LOCK</p></td>
1992<td class="struct_member_annotations"> </td>
1993</tr>
1994<tr>
1995<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GstObject-struct.name"></a>name</code></em>;</p></td>
1996<td class="struct_member_description"><p>The name of the object</p></td>
1997<td class="struct_member_annotations"> </td>
1998</tr>
1999<tr>
2000<td class="struct_member_name"><p><a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *<em class="structfield"><code><a name="GstObject-struct.parent"></a>parent</code></em>;</p></td>
2001<td class="struct_member_description"><p>this object's parent, weak ref</p></td>
2002<td class="struct_member_annotations"> </td>
2003</tr>
2004<tr>
2005<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GstObject-struct.flags"></a>flags</code></em>;</p></td>
2006<td class="struct_member_description"><p>flags for this object</p></td>
2007<td class="struct_member_annotations"> </td>
2008</tr>
2009</tbody>
2010</table></div>
2011</div>
2012</div>
2013<hr>
2014<div class="refsect2">
2015<a name="GstObjectClass"></a><h3>struct GstObjectClass</h3>
2016<pre class="programlisting">struct GstObjectClass {
2017  GInitiallyUnownedClass parent_class;
2018
2019  const gchar *path_string_separator;
2020
2021  /* signals */
2022  void          (*deep_notify)      (GstObject * object, GstObject * orig, GParamSpec * pspec);
2023
2024  /* virtual methods for subclasses */
2025};
2026</pre>
2027<p>GStreamer base object class.</p>
2028<div class="refsect3">
2029<a name="GstObjectClass.members"></a><h4>Members</h4>
2030<div class="informaltable"><table class="informaltable" width="100%" border="0">
2031<colgroup>
2032<col width="300px" class="struct_members_name">
2033<col class="struct_members_description">
2034<col width="200px" class="struct_members_annotations">
2035</colgroup>
2036<tbody>
2037<tr>
2038<td class="struct_member_name"><p>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GstObjectClass.path-string-separator"></a>path_string_separator</code></em>;</p></td>
2039<td class="struct_member_description"><p>separator used by <a class="link" href="GstObject.html#gst-object-get-path-string" title="gst_object_get_path_string ()"><code class="function">gst_object_get_path_string()</code></a></p></td>
2040<td class="struct_member_annotations"> </td>
2041</tr>
2042<tr>
2043<td class="struct_member_name"><p><em class="structfield"><code><a name="GstObjectClass.deep-notify"></a>deep_notify</code></em> ()</p></td>
2044<td class="struct_member_description"><p>default signal handler</p></td>
2045<td class="struct_member_annotations"> </td>
2046</tr>
2047</tbody>
2048</table></div>
2049</div>
2050</div>
2051<hr>
2052<div class="refsect2">
2053<a name="GstObjectFlags"></a><h3>enum GstObjectFlags</h3>
2054<p>The standard flags that an gstobject may have.</p>
2055<div class="refsect3">
2056<a name="GstObjectFlags.members"></a><h4>Members</h4>
2057<div class="informaltable"><table class="informaltable" width="100%" border="0">
2058<colgroup>
2059<col width="300px" class="enum_members_name">
2060<col class="enum_members_description">
2061<col width="200px" class="enum_members_annotations">
2062</colgroup>
2063<tbody>
2064<tr>
2065<td class="enum_member_name"><p><a name="GST-OBJECT-FLAG-MAY-BE-LEAKED:CAPS"></a>GST_OBJECT_FLAG_MAY_BE_LEAKED</p></td>
2066<td class="enum_member_description">
2067<p>the object is expected to stay alive even
2068after <a class="link" href="gstreamer-Gst.html#gst-deinit" title="gst_deinit ()"><code class="function">gst_deinit()</code></a> has been called and so should be ignored by leak
2069detection tools. (Since: 1.10)</p>
2070</td>
2071<td class="enum_member_annotations"> </td>
2072</tr>
2073<tr>
2074<td class="enum_member_name"><p><a name="GST-OBJECT-FLAG-LAST:CAPS"></a>GST_OBJECT_FLAG_LAST</p></td>
2075<td class="enum_member_description">
2076<p>subclasses can add additional flags starting from this flag</p>
2077</td>
2078<td class="enum_member_annotations"> </td>
2079</tr>
2080</tbody>
2081</table></div>
2082</div>
2083</div>
2084</div>
2085<div class="refsect1">
2086<a name="GstObject.property-details"></a><h2>Property Details</h2>
2087<div class="refsect2">
2088<a name="GstObject--name"></a><h3>The <code class="literal">“name”</code> property</h3>
2089<pre class="programlisting">  “name”                     <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
2090<p>The name of the object.</p>
2091<p>Flags: Read / Write / Construct</p>
2092<p>Default value: NULL</p>
2093</div>
2094<hr>
2095<div class="refsect2">
2096<a name="GstObject--parent"></a><h3>The <code class="literal">“parent”</code> property</h3>
2097<pre class="programlisting">  “parent”                   <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a> *</pre>
2098<p>The parent of the object. Please note, that when changing the 'parent'
2099property, we don't emit <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-notify"><span class="type">“notify”</span></a> and <a class="link" href="GstObject.html#GstObject-deep-notify" title="The “deep-notify” signal"><span class="type">“deep-notify”</span></a>
2100signals due to locking issues. In some cases one can use
2101<a class="link" href="GstBin.html#GstBin-element-added" title="The “element-added” signal"><span class="type">“element-added”</span></a> or <a class="link" href="GstBin.html#GstBin-element-removed" title="The “element-removed” signal"><span class="type">“element-removed”</span></a> signals on the parent to
2102achieve a similar effect.</p>
2103<p>Flags: Read / Write</p>
2104</div>
2105</div>
2106<div class="refsect1">
2107<a name="GstObject.signal-details"></a><h2>Signal Details</h2>
2108<div class="refsect2">
2109<a name="GstObject-deep-notify"></a><h3>The <code class="literal">“deep-notify”</code> signal</h3>
2110<pre class="programlisting"><span class="returnvalue">void</span>
2111user_function (<a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>  *gstobject,
2112               <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a>  *prop_object,
2113               <a href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> *prop,
2114               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)</pre>
2115<p>The deep notify signal is used to be notified of property changes. It is
2116typically attached to the toplevel bin to receive notifications from all
2117the elements contained in that bin.</p>
2118<div class="refsect3">
2119<a name="GstObject-deep-notify.parameters"></a><h4>Parameters</h4>
2120<div class="informaltable"><table class="informaltable" width="100%" border="0">
2121<colgroup>
2122<col width="150px" class="parameters_name">
2123<col class="parameters_description">
2124<col width="200px" class="parameters_annotations">
2125</colgroup>
2126<tbody>
2127<tr>
2128<td class="parameter_name"><p>gstobject</p></td>
2129<td class="parameter_description"><p>a <a class="link" href="GstObject.html" title="GstObject"><span class="type">GstObject</span></a></p></td>
2130<td class="parameter_annotations"> </td>
2131</tr>
2132<tr>
2133<td class="parameter_name"><p>prop_object</p></td>
2134<td class="parameter_description"><p>the object that originated the signal</p></td>
2135<td class="parameter_annotations"> </td>
2136</tr>
2137<tr>
2138<td class="parameter_name"><p>prop</p></td>
2139<td class="parameter_description"><p>the property that changed</p></td>
2140<td class="parameter_annotations"> </td>
2141</tr>
2142<tr>
2143<td class="parameter_name"><p>user_data</p></td>
2144<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
2145<td class="parameter_annotations"> </td>
2146</tr>
2147</tbody>
2148</table></div>
2149</div>
2150<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-NO-HOOKS:CAPS">No Hooks</a></p>
2151</div>
2152</div>
2153</div>
2154<div class="footer">
2155<hr>Generated by GTK-Doc V1.28</div>
2156</body>
2157</html>