[mythtv-commits] mythtv commit: r8155 by danielk
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Wed Dec 7 13:50:21 EST 2005
Author: danielk
Date: 2005-12-07 18:50:19 +0000 (Wed, 07 Dec 2005)
New Revision: 8155
Changeset: http://cvs.mythtv.org/trac/changeset/8155
Modified:
trunk/mythtv/libs/libmythtv/dummydtvrecorder.cpp
trunk/mythtv/libs/libmythtv/dummydtvrecorder.h
trunk/mythtv/libs/libmythtv/tv_rec.cpp
Log:
Fixes a segfault in the backend, when the DVBRecorder is shutdown before
it is started up. This happens if the frontend is killed at an inopportune
moment. This was fixed by setting the DVBRecorder's ringbuffer is to NULL
before it is deleted in tv_rec.
This also adds a parameter to DummyDTVRecorder::StartRecordingThread()
which makes it wait until a set number of frames is written to disk
before returning, this along with setting the ringbuffer ready flag
after a few frames are written to disk prevents the AvFormatDecoder
from telling the NVP that it hit the end-of-file before we have an
opportunity to write anything to disk.
The NVP still has problems in LiveTV when you switch from an on-air
channel to an off-air channel, but this commit should fix the backend
portion of this bug.
More information about the mythtv-commits
mailing list