[gst-devel] Please, give an example of an action signal usage.

Stefan Kost ensonic at hora-obscura.de
Fri Apr 2 11:48:00 CEST 2010


Am 02.04.2010 11:42, schrieb wl2776:
> 
> 
> Stefan Kost wrote:
>>
>> from the glib docs (please check those first in the future, you need to
>> understand the underlying technologies, we can help with gstreamer
>> specific
>> things, which this is not).
>>  [skip ] 
>>
>> You can look e.g. at camerabin example code to see how it is used.
>>
> 
> Thank you. I've read this already, and cited in my original message. 
> I will be happy to understand the underlying technologies as quickly as
> possible, but, unfortunately, my information sources are poor. All action
> signals of the camerabin have void return type and don't return any values.
> 
> The docs to the g_signal_emit () function say that its "..." parameter is
> the list of "parameters to be passed to the signal, followed by a location
> for the return value. If the return type of the signal is G_TYPE_NONE, the
> return value location can be omitted."
> 
> Does it mean that I should call, for example, 
>   GstTagList *taglist;
>   g_signal_emit_by_name(m_player, "get-audio-tags", &taglist);
> 
> ?

I think it is
g_signal_emit_by_name(m_player, "get-audio-tags", stream_nr, &taglist);

Stefan




More information about the gstreamer-devel mailing list