mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
neutrino record: fix missing id parameter
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1730 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: a7cc9a7e8d
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-10-01 (Sat, 01 Oct 2011)
Origin message was:
------------------
*neutrino record: fix missing id parameter
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1730 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -690,16 +690,16 @@ const std::string CRecordManager::GetFileName(t_channel_id channel_id)
|
||||
return filename;
|
||||
}
|
||||
|
||||
int CRecordManager::GetRecordMode()
|
||||
int CRecordManager::GetRecordMode(const t_channel_id channel_id)
|
||||
{
|
||||
if (RecordingStatus() || IsTimeshift())
|
||||
if (RecordingStatus(channel_id) || IsTimeshift(channel_id))
|
||||
{
|
||||
int records = GetRecordCount();
|
||||
if (RecordingStatus() && !IsTimeshift())
|
||||
if (RecordingStatus(channel_id) && !IsTimeshift(channel_id))
|
||||
return RECMODE_REC;
|
||||
else if (IsTimeshift() && (records == 1))
|
||||
else if (IsTimeshift(channel_id) && (records == 1))
|
||||
return RECMODE_TSHIFT;
|
||||
else if (IsTimeshift() && (records > 1))
|
||||
else if (IsTimeshift(channel_id) && (records > 1))
|
||||
return RECMODE_REC_TSHIFT;
|
||||
else
|
||||
return RECMODE_OFF;
|
||||
|
@@ -209,6 +209,6 @@ class CRecordManager : public CMenuTarget, public CChangeObserver
|
||||
int GetRecordCount() { return recmap.size(); };
|
||||
bool IsTimeshift(t_channel_id channel_id=0);
|
||||
void StartTimeshift();
|
||||
int GetRecordMode();
|
||||
int GetRecordMode(const t_channel_id channel_id=0);
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user