src/driver/record.cpp: avoid possible build error 'unused-but-set-variable'

see commit: c074e5f43268022a9f63cb80d67b6166db3fb9e3


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8890a26e3f
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-07-28 (Sat, 28 Jul 2018)



------------------
This commit was generated by Migit
This commit is contained in:
2018-07-28 17:10:23 +02:00
committed by vanhofen
parent c452c45aa6
commit 27c978b608

View File

@@ -1401,13 +1401,13 @@ void CRecordManager::StartTimeshift()
std::string tmode = "ptimeshift"; // already recording, pause
bool res = true;
t_channel_id live_channel_id = CZapit::getInstance()->GetCurrentChannelID();
bool tstarted = false;
// bool tstarted = false;
/* start temporary timeshift if enabled and not running, but dont start second record */
if (g_settings.temp_timeshift) {
if (!FindTimeshift()) {
res = StartAutoRecord();
tmode = "timeshift"; // record just started
tstarted = true;
// tstarted = true;
}
}
else if (!RecordingStatus(live_channel_id)) {