[gst-devel] request_pad question

Frnk frnk at a-eskwadraat.nl
Mon Dec 29 06:00:54 CET 2003


Hi,

I have a question regarding dynamic pads.  Has their usage changed since
0.6.x?  A simple program, which works with 0.6.4 (debian package) does
not with 0.7.3.  (shown below)

thanx, Frnk


program:

#include <gst/gst.h>

int main(int argc, char ** argv)
{
	GstElement * enc;
	GstPad * pad;

	gst_init(&argc, &argv);

	enc = gst_element_factory_make("system_encode", "muxer");
	pad = gst_element_get_request_pad(enc, "audio_%d");

	g_print("new pad %s\n", gst_pad_get_name (pad));

	exit(0);
}

which produces the following output:

[frnk] > ./test
 
** (process:5420): WARNING **: system_encode: this is not our template!
 
 
(process:5420): GStreamer-CRITICAL **: file gstpad.c: line 454
(gst_pad_get_name): assertion `pad != NULL' failed
new pad (null)
[frnk] > 



-- 
Frnk <frnk at a-eskwadraat.nl>





More information about the gstreamer-devel mailing list