[mythtv-commits] mythtv commit: r6856 by danielk
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Mon Jul 18 15:19:05 EDT 2005
Author: danielk
Date: 2005-07-18 19:19:04 +0000 (Mon, 18 Jul 2005)
New Revision: 6856
Changeset: http://cvs.mythtv.org/trac/changeset/6856
Modified:
trunk/mythtv/libs/libmythtv/channel.cpp
trunk/mythtv/libs/libmythtv/channel.h
trunk/mythtv/libs/libmythtv/channelbase.h
trunk/mythtv/libs/libmythtv/dvbchannel.cpp
trunk/mythtv/libs/libmythtv/dvbchannel.h
trunk/mythtv/libs/libmythtv/dvbrecorder.cpp
trunk/mythtv/libs/libmythtv/dvbrecorder.h
trunk/mythtv/libs/libmythtv/firewirechannel.h
trunk/mythtv/libs/libmythtv/tv_rec.cpp
trunk/mythtv/libs/libmythtv/tv_rec.h
Log:
Moved dvb_on_demand channel opening and closing from DVBRecorder to TVRec.
Added IsOpen() to ChannelBase(), to simplify determining when
we need to open or close the channel in tv_rec.
Created CloseChannel() method which handles closing the
channel iff we should be closing it.
Added a Close() call to Channel::SetFd() so that we don't leak
open file descriptors.
Put common channel initialization code from the different channel
types in TVRec::Init() to a InitChannel() method to reduce code
duplication.
Renamed CloseDVB() method in DVBChannel to Close() to match other
Channel classes. It should only be called in CloseChannel() if
dvb_on_demand is not enabled, so the behavior does not change.
The only functional change is that you can start a DVBRecorder
without reopening the DVBChannel when dvb_on_demand is enabled.
This is useful for signal monitoring because you tune to the
channel before starting up the recorder and don't want the
extra delay of having to re-tune to the service when you start
up the recorder.
More information about the mythtv-commits
mailing list