Skip to content

Commit 549fca1

Browse files
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
1 parent d965755 commit 549fca1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mythtv/libs/libmythtv/RingBuffer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ long long RingBuffer::Seek(long long pos, int whence, bool has_lock)
18871887
}
18881888
#endif
18891889

1890-
#if 1
1890+
#if 0
18911891
// This optimizes the seek end-250000, read, seek 0, read portion
18921892
// of the pattern ffmpeg performs at the start of playback to
18931893
// determine the pts.
@@ -1986,8 +1986,6 @@ long long RingBuffer::Seek(long long pos, int whence, bool has_lock)
19861986
readsallowed = false;
19871987
}
19881988

1989-
rbwlock.unlock();
1990-
rbrlock.unlock();
19911989
poslock.unlock();
19921990

19931991
generalWait.wakeAll();

0 commit comments

Comments
 (0)