[gst-devel] How to connect to cdparanoiasrc's transport-error signal?

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jan 14 16:54:49 CET 2011


On Fri, 2011-01-14 at 20:40 +0530, Yogesh Marwaha wrote:

> Sorry if I am missing something trivial, but I need to declare and define a 
> callback function like this:-
> 
> void my_transport_error_callback(GstCddaBaseSrc *cdparanoia, gint sector, 
> gpointer userData);

Not sure where you got the BaseSrc bit from, but you can just do:

void
my_transport_error_callback (GstElement * cdparanoia,
    gint sector, gpointer user_data)
{
  ...
}

Cheers
 -Tim





More information about the gstreamer-devel mailing list