CRecordInstance: Turns message when recording start/end on or off

This commit is contained in:
[priv] M. Liebmann
2014-01-13 19:39:41 +01:00
committed by M. Liebmann
parent 9fb64f13ce
commit ae2a01a37a
8 changed files with 17 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
time_t msg_start_time = time(0);
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_RECORDING_START));
if (!(autoshift && g_settings.auto_timeshift))
if ((!(autoshift && g_settings.auto_timeshift)) && g_settings.recording_startstop_msg)
hintBox.paint();
tsfile = std::string(filename) + ".ts";
@@ -253,7 +253,7 @@ bool CRecordInstance::Stop(bool remove_event)
recMovieInfo->length = (int) round((double) (end_time - start_time) / (double) 60);
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, rec_stop_msg.c_str());
if (!(autoshift && g_settings.auto_timeshift))
if ((!(autoshift && g_settings.auto_timeshift)) && g_settings.recording_startstop_msg)
hintBox.paint();
printf("%s: channel %" PRIx64 " recording_id %d\n", __func__, channel_id, recording_id);