[gst-devel] does signal has last param user_data in gstreamer?

Farkas Levente lfarkas at lfarkas.org
Sat Jan 8 22:12:53 CET 2011


On 01/06/2011 04:41 PM, Edward Hervey wrote:
> On Thu, 2011-01-06 at 16:31 +0100, Farkas Levente wrote:
>> hi,
>> then the two signal definition in input-selector is bad? or..
>> http://cgit.freedesktop.org/gstreamer/gstreamer/tree/plugins/elements/gstinputselector.h
>> since there is no last argument user_data?
> 
>   Those are the vmethod implementations called *on* the object (read
> more of the gobject docs to understand what I mean).
>   user_data is only used in the callbacks and added by the signalling
> system auto-magically.
> 
>     Edward

but it'd be nice to use consistent docs/help ie. either all gst-inspect
signal contain it as last param or none (see for example gst-inspect
input-selector).

>>
>> On 01/06/2011 03:29 PM, Guillaume Emont wrote:
>>> Hi Farkas,
>>>
>>> That is indeed a gobject signal thing: when you connect [1] to a signal,
>>> you specify a "user_data" pointer to pass to the callback you're
>>> attaching, whatever the signal.
>>> This is all should be explained in the signal section of the GObject
>>> Reference Manual [2].
>>>
>>> Guillaume
>>>
>>> [1]
>>> http://library.gnome.org/devel/gobject/2.26/gobject-Signals.html#g-signal-connect
>>> [2] http://library.gnome.org/devel/gobject/2.26/signal.html
>>>
>>> On 06/01/2011 14:50, Farkas Levente wrote:
>>>> hi,
>>>> let see an example: both gst-inspect input-selector and
>>>> http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-input-selector.html
>>>> said that the signal "switch" has a last argument as
>>>> gpointer user_data
>>>> and the signal "block" has no such last argument in the gst-inspect
>>>> output, but has in the above docs.
>>>> but when i look onto the source code in gstinputselector.h none of these
>>>> signal has last param!
>>>>
>>>> since there are many signal (almos all) which has last param user_data
>>>> so my questions in general:
>>>> is the last param user_data exist or not at all? or it's something glib
>>>> specific thing or ...?
>>>> thanks in advance.
>>>> regards.
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>>> to consolidate database storage, standardize their database environment, and, 
>>> should the need arise, upgrade to a full multi-node Oracle RAC database 
>>> without downtime or disruption
>>> http://p.sf.net/sfu/oracle-sfdevnl
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-- 
  Levente                               "Si vis pacem para bellum!"




More information about the gstreamer-devel mailing list