How to get control from plugin to my app

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

How to get control from plugin to my app

AlannY-2
I'm writting an app and GStreamer plugin. Plugin reads data and
*attention* pass data to my application. So, I have a one question: how
to transmit data from my plugin to my app?

I mean, i have a _chain() function in plugin and some GstBuffer in it. I
want to tell my application (which already runs and loaded plugin) to do
some things with that GstBuffer. Which way is best? To use GLib
properties, or may be you already have a better way?

If you can't understand my english - just skip this letter ;-) Thank you.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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 get control from plugin to my app

Julien Isorce
Hi

Refer to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-identity.html

and to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html

The thing that you are talking about is "grab data from the pipeline to your app".

You can take example from the identity element there: (the signal_handoff property)
http://webcvs.freedesktop.org/gstreamer/gstreamer/plugins/elements/gstidentity.c?revision=1.124&view=markup

Sincerely

Julien



2008/4/14, AlannY <[hidden email]>:
I'm writting an app and GStreamer plugin. Plugin reads data and
*attention* pass data to my application. So, I have a one question: how
to transmit data from my plugin to my app?

I mean, i have a _chain() function in plugin and some GstBuffer in it. I
want to tell my application (which already runs and loaded plugin) to do
some things with that GstBuffer. Which way is best? To use GLib
properties, or may be you already have a better way?

If you can't understand my english - just skip this letter ;-) Thank you.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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 get control from plugin to my app

LIANG ZHAO-2
Another alternative is gst_pad_add_buffer_probe, add a probe for specific pad you want to grab.

Best Regards
Zhao Liang


From: [hidden email] [mailto:[hidden email]] On Behalf Of Julien Isorce
Sent: Monday, April 14, 2008 11:49 PM
To: AlannY
Cc: [hidden email]
Subject: Re: [gst-devel] How to get control from plugin to my app

Hi

Refer to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-identity.html

and to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html

The thing that you are talking about is "grab data from the pipeline to your app".

You can take example from the identity element there: (the signal_handoff property)
http://webcvs.freedesktop.org/gstreamer/gstreamer/plugins/elements/gstidentity.c?revision=1.124&view=markup

Sincerely

Julien



2008/4/14, AlannY <[hidden email]>:
I'm writting an app and GStreamer plugin. Plugin reads data and
*attention* pass data to my application. So, I have a one question: how
to transmit data from my plugin to my app?

I mean, i have a _chain() function in plugin and some GstBuffer in it. I
want to tell my application (which already runs and loaded plugin) to do
some things with that GstBuffer. Which way is best? To use GLib
properties, or may be you already have a better way?

If you can't understand my english - just skip this letter ;-) Thank you.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel