failed to link appsrc to rtph264depay

Dudi.r dudi017 at
Wed Apr 23 06:54:00 PDT 2014

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


View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list