[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 12:55:17 CET 2011


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







More information about the gstreamer-devel mailing list