GNOME Bugzilla – Bug 734666
audiodecoder: Don't drain and flush on SEGMENT events.
Last modified: 2014-08-12 15:27:22 UTC
As was done for the base video decoder in commit 695675, don't flush out the decoder on a new SEGMENT event. Segment events may be a new segment, but are also often segment updates for the current segment where the old data should be kept. For new segments, a STREAM_START event will already trigger a drain, but make sure to flush any remaining partial data then as well.
Created attachment 283199 [details] [review] audiodecoder: Don't drain and flush on SEGMENT events. As was done for the base video decoder in commit 695675, don't flush out the decoder on a new SEGMENT event. Segment events may be a new segment, but are also often segment updates for the current segment where the old data should be kept. For new segments, a STREAM_START event will already trigger a drain, but make sure to flush any remaining partial data then as well.