can't connect the decodebin to autovideosink

leon dudi.reuveni at comm-it.co.il
Tue Apr 22 09:49:40 PDT 2014


Hi,

I have simple pipeline:

appsrc ! decodebin ! autovideosink

I know that I cant link the decodebin to the autovideosink until the stream
starts.
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",
"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*),
app);


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.

thanks
Leon.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/can-t-connect-the-decodebin-to-autovideosink-tp4666547.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list