GNOME Bugzilla – Bug 436562
Theoradec doesn't work well with gnonlin
Last modified: 2007-05-07 11:41:21 UTC
When specifying a media-start of something other than zero, gnonlin doesn't like theora files.
Specifically, the problem is that gnonlin blocks theoradec's srcpad, and issues a seek as soon as that pad block triggers.
If it's triggered by an event (e.g. tags, newsegment), this seek can occur before the decoder has received all the headers. As a result, the headers are never received, so decode fails.
I'll attach a patch which defers sending newsegment and tag events until after the decoder is fully initialised.
Created attachment 87690 [details] [review]
Defer sending events until initialised
apart from the fact that gst_element_found_tags_for_pad() does more than just push them (it also posts them on the bus), that patch is fine by me.