mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
neutrino record: fix return value in GetRecordMode()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1733 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 363a2bfb68
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-10-01 (Sat, 01 Oct 2011)
Origin message was:
------------------
*neutrino record: fix return value in GetRecordMode()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1733 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -694,18 +694,24 @@ int CRecordManager::GetRecordMode(const t_channel_id channel_id)
|
||||
{
|
||||
if (RecordingStatus(channel_id) || IsTimeshift(channel_id))
|
||||
{
|
||||
int records = GetRecordCount();
|
||||
if (RecordingStatus(channel_id) && !IsTimeshift(channel_id))
|
||||
return RECMODE_REC;
|
||||
else if (IsTimeshift(channel_id) && (records == 1))
|
||||
return RECMODE_TSHIFT;
|
||||
else if (IsTimeshift(channel_id) && (records > 1))
|
||||
return RECMODE_REC_TSHIFT;
|
||||
else
|
||||
return RECMODE_OFF;
|
||||
if (channel_id == 0)
|
||||
{
|
||||
int records = GetRecordCount();
|
||||
if (IsTimeshift(channel_id) && (records == 1))
|
||||
return RECMODE_TSHIFT;
|
||||
else if (IsTimeshift(channel_id) && (records > 1))
|
||||
return RECMODE_REC_TSHIFT;
|
||||
else
|
||||
return RECMODE_OFF;
|
||||
}else
|
||||
{
|
||||
if (IsTimeshift(channel_id))
|
||||
return RECMODE_TSHIFT;
|
||||
}
|
||||
}
|
||||
else
|
||||
return RECMODE_OFF;
|
||||
return RECMODE_OFF;
|
||||
}
|
||||
|
||||
bool CRecordManager::Record(const t_channel_id channel_id, const char * dir, bool timeshift)
|
||||
|
Reference in New Issue
Block a user