[gst-devel] problem on dhelloword example

woo john wuym2000cn at hotmail.com
Fri Jun 23 05:17:12 CEST 2006


hi,
  I cut the helloworld example code from the gstreamer manual. Since i do 
testing on windows
  I changed the alsasink to fakesink.
  When i run this example, I got some questions.
  1) first, I find the paser and decoder can't be linked dynamicly. Function 
gst_pad_link (pad, sinkpad) return  result=-4.
  2) secondly,the output screen print the following debug information.i am 
not clear if this information is unharmful.
     ----------------------------------------------

(helloword.exe:796): GLib-GObject-WARNING **: cannot register existing type 
`Gst
AudioFilter'

(helloword.exe:796): GLib-GObject-CRITICAL **: g_type_register_static: 
assertion
`parent_type > 0' failed

** (helloword.exe:796): CRITICAL **: file 
d:\b610\gst\gstreamer\gst\gstelementfa
ctory.c: line 266: assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed
Setting to PLAYING
Running

** (helloword.exe:796): CRITICAL **: file 
d:\b610\gst\gstreamer\gst\gstevent.c:
line 525: assertion `start != -1' failed
Dynamic pad created, linking parser/decoder
-----------------------------------------------------------------------------
  at last,i paste the code i modified here.
----------------------------------------------
                   /* create elements */
	pipeline = gst_pipeline_new ("audio-player");
	source = gst_element_factory_make ("filesrc", "file-source");
	parser = gst_element_factory_make ("oggdemux", "ogg-parser");
	decoder = gst_element_factory_make ("vorbisdec", "vorbis-decoder");
	conv = gst_element_factory_make ("audioconvert", "converter");
	//sink = gst_element_factory_make ("alsasink", "alsa-output");
	sink = gst_element_factory_make ("fakesink", "testsink");
	//sink = gst_element_factory_make ("directsoundsink", "asink");
	if (!pipeline || !source || !parser || !decoder || !conv || !sink) {
		g_print ("One element could not be created\n");
		return -1;
	}
----------------------------------------------

i hope to get your help.

thanks in advance.

woo






More information about the gstreamer-devel mailing list