GNOME Bugzilla – Bug 347295
[vorbisdec] Pushes before being initialized
Last modified: 2006-07-12 13:04:46 UTC
vorbisdec currently pushes out a lot of events (newsegment, tags) before being properly initialized (able to answer a seek, queries, ...). It should wait until it is properly initialized before outputting those events.
Created attachment 68800 [details] [review] Delays all event pushes until vorbisdec is initialized. This patches fixes the behaviour. Works with pitivi, jokosher, gnonlin, totem.
2006-07-12 Edward Hervey <edward@fluendo.com> * ext/vorbis/vorbisdec.c: (gst_vorbis_dec_init), (gst_vorbis_dec_reset), (vorbis_dec_sink_event), (vorbis_handle_comment_packet), (vorbis_handle_type_packet): * ext/vorbis/vorbisdec.h: Delay sending events (newsegment, tags) until the decoder is properly initialized. Fixes #347295
Created attachment 68810 [details] [review] Addendum to previous patch This is an addition to the previous patch. As soon as tags are found, they are posted on the bus as messages, even though the decoder isn't initialized. This makes 'make check' happy :)
2006-07-12 Edward Hervey <edward@fluendo.com> * ext/vorbis/vorbisdec.c: (gst_vorbis_dec_reset), (vorbis_dec_sink_event), (vorbis_handle_comment_packet), (vorbis_handle_type_packet): Post tag messages on the bus even if we're not initialized. If we're not initialized, we still postpone the event pushing of tags.