[gst-devel] Help Decodeb program.in

Fariq Izwan fizwan at gmail.com
Tue Apr 27 04:50:02 CEST 2010


You should change this code

/* link videopad */
	videopad = gst_element_get_static_pad(pW->video,"sink");
	if (!GST_PAD_IS_LINKED (videopad)) {
		gst_pad_link(pad,videopad);
		gst_element_link(pW->videoqueue,pW->video);
		g_object_unref (videopad);
		return;
	}


to the code same like how you link the audiopad. Here's the example:

if(g_strrstr(tex,"video"))
	{
		videopad = gst_element_get_static_pad (pW->video, "sink");
		if(GST_PAD_IS_LINKED(videopad))
		{
			g_object_unref(videopad);
.
.
.
.and so on..

Fariq Izwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100427/98c887f9/attachment.htm>


More information about the gstreamer-devel mailing list