How to connect to cdparanoiasrc's transport-error signal?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to connect to cdparanoiasrc's transport-error signal?

Yogesh Marwaha
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.


Regards,

--
Yogesh M
http://sparklemedia.sourceforge.net/
http://mazedaar.wordpress.com/
http://snakeeyes.wordpress.com/

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to connect to cdparanoiasrc's transport-error signal?

Tim-Philipp Müller-2
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to connect to cdparanoiasrc's transport-error signal?

Yogesh Marwaha
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to connect to cdparanoiasrc's transport-error signal?

Tim-Philipp Müller-2
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


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to connect to cdparanoiasrc's transport-error signal?

Yogesh Marwaha
Thank you very much :)

On Friday 14 Jan 2011 9:24:49 pm Tim-Philipp Müller wrote:

> 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
>
>
> ---------------------------------------------------------------------------
> --- 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel