GNOME Bugzilla – Bug 338716
[wavenc] "not negotiated" error with CVS core
Last modified: 2006-04-19 15:17:14 UTC
$ gst-launch-0.10 audiotestsrc ! wavenc ! fakesink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /pipeline0/audiotestsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(1479): gst_base_src_loop (): /pipeline0/audiotestsrc0: streaming task paused, reason not-negotiated Execution ended after 1216000 ns. Same for $ gst-launch-0.10 ... ! decodebin ! audioconvert ! wavenc ! fakesink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /pipeline0/audiotestsrc0: Internal data flow error. Additional debug info: gstbasesrc.c(1479): gst_base_src_loop (): /pipeline0/audiotestsrc0: streaming task paused, reason not-negotiated Execution ended after 1216000 ns. This is sad. It should be sad that the not-negotiated error is thrown after an encoded buffer has gone through to fakesink and not right away.
Actually, I am not so sure wavenc ever really worked in 0.10, so not a blocker (fixing ..)
2006-04-19 Tim-Philipp Müller <tim at centricular dot net> * gst/wavenc/gstwavenc.c: (gst_wavenc_base_init), (gst_wavenc_class_init), (gst_wavenc_init), (gst_wavenc_create_header_buf), (gst_wavenc_push_header), (gst_wavenc_sink_setcaps), (get_id_from_name), (gst_wavenc_event), (gst_wavenc_chain), (gst_wavenc_change_state): * gst/wavenc/gstwavenc.h: Set caps on first outgoing buffer, so that it doesn't error out immediately with a non-negotiated error (#338716). Rewrite and clean up a bit; fix setcaps function to parse things properly; fix sink caps (8bit audio is unsigned and doesn't have depth); use boilerplate macros; remove unused properties stuff.