failed to link appsrc to rtph264depay
Wim Taymans
wim.taymans at gmail.com
Wed Apr 23 07:03:43 PDT 2014
You need a NULL terminater for gst_element_link_many()
Wim
On 23 April 2014 15:54, Dudi.r <dudi017 at gmail.com> wrote:
> Hi fellows,
>
> I have a question about appsrc and appsink.
>
> im trying to build this pipeline:
>
>
> #include <gst/app/gstappsrc.h>
> #include <gst/app/gstappsink.h>
>
> GstAppSrc *src;
> GstAppSink *sink;
>
>
> src = (GstAppSrc*)gst_element_factory_make("appsrc", "src");
> rtph264depay=gst_element_factory_make("rtph264depay", "rtph264depay");
> sink = (GstAppSink*)gst_element_factory_make("appsink", "sink");
>
> gst_bin_add_many(GST_BIN(pipeline), (GstElement*)src, rtph264depay,
> (GstElement*)sink , NULL);
>
> if(!gst_element_link_many((GstElement*)src, rtpdepay, (GstElement*)sink)){
> g_warning("failed to link pipeline");
> }
>
> but I get- "failed to link pipeline".
>
> what is wrong with the linking? I can't figure it out..
>
> thanks,
> Dudi.
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/failed-to-link-appsrc-to-rtph264depay-tp4666583.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140423/4dbeaed9/attachment.html>
More information about the gstreamer-devel
mailing list