GNOME Bugzilla – Bug 482147
[queue] Issue with current time level if source task is not started
Last modified: 2010-10-11 14:14:09 UTC
If the source task of queue is not started, the current time level will be wrong since the real current segment hasn't been set on queue->src_segment. Commented the broken line in gstqueue.c until it is fixed with a comment linking to this bug.
one possible solution would be to apply the sink segment on the source immediatly when it is received and there is nothing in the queue. We have to make sure that we don't reaply it when we push the segment then.
Created attachment 154114 [details] [review] Apply the sink segment on the source immediately when it is received if the queue is empty
Created attachment 155739 [details] [review] patch rebased to latest gstreamer
Created attachment 158823 [details] [review] Fixed a small bug in the previous patch
Created attachment 168715 [details] [review] added unit test
Created attachment 172091 [details] [review] patch updated - apply only the first new segment on src
commit 36b533d5b2689cffa916f02f32bed3446112b612 Author: Ognyan Tonchev <ognyan@axis.com> Date: Mon Oct 11 10:27:52 2010 +0200 queue: apply sink segment on the source if queue is empty Apply the sink segment on the source immediatly when it is received and there is nothing in the queue. Solves #482147