Source plugin with two pads

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

Source plugin with two pads

be999

Based on gstplugin.c code, I added a second source pad to a new gstplugin-2.c
After proper installation, the simple pipeline below fails:

gst-launch-1.0 -m -v plugin-2 ! fakesink . ! fakesink .
WARNING: erroneous pipeline: syntax error

whereas
gst-launch-1.0 -m -v plugin-2 ! fakesink
does not show the problem.

Does anyone know what I am doing wrong?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Source plugin with two pads

Dimitrios Katsaros
I am assuming you have not left out anything of your erroneous launch line.

if you add a dot at the end of a string you are declaring that as a plugin named as "fakesink" what you want is something like this:

gst-launch-1.0  fakesrc name=asd  asd. ! fakesink

change fakesrc to the new element name

Dimitrios


On Wed, Feb 1, 2017 at 9:23 PM, be999 <[hidden email]> wrote:

Based on gstplugin.c code, I added a second source pad to a new
gstplugin-2.c
After proper installation, the simple pipeline below fails:

gst-launch-1.0 -m -v plugin-2 ! fakesink . ! fakesink .
WARNING: erroneous pipeline: syntax error

whereas
gst-launch-1.0 -m -v plugin-2 ! fakesink
does not show the problem.

Does anyone know what I am doing wrong?

Thanks




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Source-plugin-with-two-pads-tp4681680.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Source plugin with two pads

be999

Thanks, I tried this:

gst-launch-1.0 plugin-2 name=thesrc thesrc. ! video/x-h264 ! fakesink thesrc. ! video/x-raw ! fakesink

and it works!