Permalink
Browse files

Refs #9196. This disables the ffmpeg mpeg-2 startup optimization in t…

…he 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
  • Loading branch information...
daniel-kristjansson committed Nov 28, 2010
1 parent d965755 commit 549fca144da15e987f6d850d07d30a863666a49c
Showing with 1 addition and 3 deletions.
  1. +1 −3 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();

0 comments on commit 549fca1

Please sign in to comment.