GNOME Bugzilla – Bug 611918
leaky queue might not push newsegment event
Last modified: 2010-08-20 14:13:20 UTC
Created attachment 155320 [details] [review] push newsegment event before any buffer The queue element will not push a newsegment event when linking the src pad of the queue in PLAYING state if the newsegment event has been leaked.
Created attachment 155326 [details] [review] push newsegment before any buffer or event that is not newsegment Updated patch to not push newsegment before a newsegment poped from the queue.
I'm unsure about this patch. It could be possible that a segment should be pushed right before another segment event (when the previous event was dropped). Maybe you want something that accumulates the newsegment events that were dropped and push it out before anything else.
It looks like new segment events are always enqueued and always accounted for when dequeued, even when leaked. So it ought to work already, no?
Created attachment 168293 [details] [review] unit test for nesegment events Added unit test for nesegment events.
commit 9f87f57a8273631526e938f64ae90ce3efc31a02 Author: Jonas Holmberg <jonas.holmberg@axis.com> Date: Thu Aug 19 17:07:00 2010 +0200 queue: added unit test for newsegment events commit 97cab76ca7f7fd447f5000e3985b96edf1f57dbf Author: Jonas Holmberg <jonas.holmberg@axis.com> Date: Fri Mar 5 17:18:23 2010 +0100 queue: Push newsegment when linking in PLAYING Fixes #611918