diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 6184c3832..46cdeb7b1 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -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; diff --git a/src/driver/record.h b/src/driver/record.h index 3f2e51c5c..bea549441 100644 --- a/src/driver/record.h +++ b/src/driver/record.h @@ -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