[mythtv-commits] mythtv commits
mythtv@ijr.dnsalias.org
mythtv@ijr.dnsalias.org
Sat, 16 Nov 2002 15:10:02 -0500
----------------------------------------------------------------------------
Changes committed by john on Sat Nov 16 15:08:08 2002
Modified Files:
in MC/libs/libNuppelVideo:
RingBuffer.cpp RingBuffer.h NuppelVideoRecorder.cpp
Log Message:
Three changes resulted from an afternoon spent figuring out why it crashed
most of the time when transitioning from LiveTV to Recording+Watching.
* Pause the recorder's write thread before telling the ringbuffer to
transitionToFile. This did not fix the bug, but I believe the change
is correct.
* Made the ringbuffer's reset function acquire the write lock, instead of
the read lock (so that totalwritepos etc. really get zeroed out)
* Fixed a whoopsie in the ring buffer, where it calculates whether it
is reading past the end of the buffer or not. This should never have been
looking at dumpfw. That was just brain damaged.
Hopefully the locking change wont cause deadlocks or anything.
----------------------------------------------------------------------------