gstreamer/plugins
Tim-Philipp Müller bbec3d4e2f queue2: fix possible data corruption in ring buffer mode when seeking
Fix race that could cause data corruption when seeking in ring buffer
mode.

In perform_seek_to_offset(), called from the demuxer's pull_range
request, we drop the lock, tell upstream (usually a http source)
to seek to a different offset, then re-acquire the lock before we
do things to the ranges. However, between us sending the seek event
and re-acquiring the lock, the source thread might already have pushed
some data and moved along the range's writing_pos beyond the seek
offset. In that case we don't want to set the writing position back
to the requested seek position, as it would cause data to be written
to the wrong offset in the file or ring buffer.

Reproducible doing seek-emulated fast-forward/backward on 006653.
2012-09-12 12:31:04 +01:00
..
elements queue2: fix possible data corruption in ring buffer mode when seeking 2012-09-12 12:31:04 +01:00
indexers configure: explicitly check for sys/mman.h header 2012-05-15 19:05:42 +01:00
Makefile.am android: make it ready for androgenizer 2011-04-11 01:08:07 +02:00