<div dir="ltr">You need a NULL terminater for gst_element_link_many()<div><br></div><div>Wim</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 April 2014 15:54, Dudi.r <span dir="ltr"><<a href="mailto:dudi017@gmail.com" target="_blank">dudi017@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi fellows,<br>
<br>
I have a question about appsrc and appsink.<br>
<br>
im trying to build this pipeline:<br>
<br>
<br>
#include <gst/app/gstappsrc.h><br>
#include <gst/app/gstappsink.h><br>
<br>
GstAppSrc *src;<br>
GstAppSink *sink;<br>
<br>
<br>
src = (GstAppSrc*)gst_element_factory_make("appsrc", "src");<br>
rtph264depay=gst_element_factory_make("rtph264depay", "rtph264depay");<br>
sink = (GstAppSink*)gst_element_factory_make("appsink", "sink");<br>
<br>
gst_bin_add_many(GST_BIN(pipeline), (GstElement*)src, rtph264depay,<br>
(GstElement*)sink , NULL);<br>
<br>
if(!gst_element_link_many((GstElement*)src, rtpdepay, (GstElement*)sink)){<br>
g_warning("failed to link pipeline");<br>
}<br>
<br>
but I get- "failed to link pipeline".<br>
<br>
what is wrong with the linking? I can't figure it out..<br>
<br>
thanks,<br>
Dudi.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/failed-to-link-appsrc-to-rtph264depay-tp4666583.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/failed-to-link-appsrc-to-rtph264depay-tp4666583.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>