Skip to content

Commit

Permalink
Refs #9196. This disables the ffmpeg mpeg-2 startup optimization in t…
Browse files Browse the repository at this point in the history
…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 549fca1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mythtv/libs/libmythtv/RingBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 549fca1

Please sign in to comment.