summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kristjansson <dkristjansson@mythtv.org>2010-11-28 18:27:07 (GMT)
committer Daniel Kristjansson <dkristjansson@mythtv.org>2010-11-28 18:27:07 (GMT)
commit549fca144da15e987f6d850d07d30a863666a49c (patch)
tree63f308b2be7d3591a144e8d7bc6ad7aa61da591c
parentd965755017bbea6ae651bb6c015173aa3de6f657 (diff)
Refs #9196. This disables the ffmpeg mpeg-2 startup optimization in the ringbuffer code in 0.24-fixes and fixes the the problem reported by Jeff Lu. Please report back whether this helps with MS Windows playback.
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27364 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmythtv/RingBuffer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/mythtv/libs/libmythtv/RingBuffer.cpp b/mythtv/libs/libmythtv/RingBuffer.cpp
index fbf3967..be29124 100644
--- a/mythtv/libs/libmythtv/RingBuffer.cpp
+++ b/mythtv/libs/libmythtv/RingBuffer.cpp
@@ -1887,7 +1887,7 @@ long long RingBuffer::Seek(long long pos, int whence, bool has_lock)
}
#endif
-#if 1
+#if 0
// This optimizes the seek end-250000, read, seek 0, read portion
// of the pattern ffmpeg performs at the start of playback to
// determine the pts.
@@ -1986,8 +1986,6 @@ long long RingBuffer::Seek(long long pos, int whence, bool has_lock)
readsallowed = false;
}
- rbwlock.unlock();
- rbrlock.unlock();
poslock.unlock();
generalWait.wakeAll();