can't connect the decodebin to autovideosink

leon dudi.reuveni at
Tue Apr 22 09:49:40 PDT 2014


I have simple pipeline:

appsrc ! decodebin ! autovideosink

I know that I cant link the decodebin to the autovideosink until the stream
but when I tried to add the callback "pad-added" and put a break point, the
program never got there.

static void *on_pad_added*(GstElement *element, GstPad *pad)
	 g_debug("pad added");

app->src = (GstAppSrc*)gst_element_factory_make("appsrc", "mysrc");
app->decodebin = gst_element_factory_make("decodebin", "decodebin");
app->autovideosink = gst_element_factory_make("autovideosink",

g_signal_connect(app->src, "need-data", G_CALLBACK(start_feed), app);
g_signal_connect(app->src, "enough-data", G_CALLBACK(stop_feed), app);
g_signal_connect(app->decodebin, "pad-added", G_CALLBACK(*on_pad_added*),

gst_bin_add_many(GST_BIN(app->pipeline1), (GstElement*)app->src,
app->decodebin, app->autovideosink, NULL);
 if(!gst_element_link_many((GstElement*)app->src, app->decodebin)){
       g_warning("failed to link src and sink");

am I doing something wrong here? I will be happy for help.


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

More information about the gstreamer-devel mailing list