[gst-devel] How to connect to cdparanoiasrc's transport-error signal?
Yogesh Marwaha
yogeshm.007 at gmail.com
Fri Jan 14 16:10:26 CET 2011
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);
Thanks for replying,
On Friday 14 Jan 2011 5:25:17 pm Tim-Philipp Müller wrote:
> On Fri, 2011-01-14 at 17:01 +0530, Yogesh Marwaha wrote:
>
> Hi,
>
> > I need to connect to cdparanoiasrc's transport-error signal.
> >
> > The "transport-error" signal:
> > void user_function (GstCdParanoiaSrc *cdparanoia, sector, gpointer
> > user_data) This signal is emitted whenever an error occurs while
> > reading.
> > CdParanoia will attempt to recover the data.
> >
> > The problem is that I am unable to find a header file where
> > GstCdParanoiaSrc is defined.
>
> There are no header files. You don't need to know how GstCdParanoiaSrc
> is defined.
>
> Just
>
> g_signal_connect (element, "transport-error",
> G_CALLBACK (my_transport_error_callback), NULL);
>
> Cheers
> -Tim
>
>
>
>
> ---------------------------------------------------------------------------
> --- Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> 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
More information about the gstreamer-devel
mailing list