diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index d41ffe6b9..a5fccbc4e 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -2051,7 +2051,7 @@ settings.pos_top_left oben links settings.pos_top_right oben rechts settings.restore Image-Einstellungen: Wiederherstellen settings.restore_warn Alle Settings werden ersetzt.\nDie Box wird neu gestartet.\nWeiter? -shutdown.recoding_query Aufnahme läuft. Trotzdem beenden? +shutdown.recording_query Aufnahme läuft. Trotzdem beenden? shutdowntimer.announce Die Box wird in 1 Min. heruntergefahren.\nShutdown abbrechen? sleeptimerbox.announce Die Box wird in 1 Min. in Standby-Betrieb gehen.\nStandby-Betrieb abbrechen? sleeptimerbox.hint1 Ausschaltzeit in Minuten (000 = aus) diff --git a/data/locale/english.locale b/data/locale/english.locale index 28b0d41c3..a4a2a1477 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -2047,7 +2047,7 @@ settings.pos_top_left top left settings.pos_top_right top right settings.restore Image-Settings: Restore settings.restore_warn This will replace all settings and reboot\nContinue ? -shutdown.recoding_query You really want to to stop record ? +shutdown.recording_query You really want to to stop record ? shutdowntimer.announce Box will shutdown in 1 min.\nCancel Shutdown ? sleeptimerbox.announce Box will standby in 1 min.\nCancel Standby ? sleeptimerbox.hint1 Shutdown time in minutes (000 = off) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 8f0bd3ebd..7dbae6f32 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -1298,7 +1298,7 @@ int CRecordManager::exec(CMenuTarget* parent, const std::string & actionKey ) snprintf(rec_msg1, sizeof(rec_msg1)-1, "%s", g_Locale->getText(LOCALE_RECORDINGMENU_MULTIMENU_ASK_STOP_ALL)); snprintf(rec_msg, sizeof(rec_msg)-1, rec_msg1, records); - if(ShowMsg(LOCALE_SHUTDOWN_RECODING_QUERY, rec_msg, + if(ShowMsg(LOCALE_SHUTDOWN_RECORDING_QUERY, rec_msg, CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) == CMessageBox::mbrYes) { snprintf(rec_msg1, sizeof(rec_msg1)-1, "%s", g_Locale->getText(LOCALE_RECORDINGMENU_MULTIMENU_INFO_STOP_ALL)); @@ -1478,7 +1478,7 @@ bool CRecordManager::AskToStop(const t_channel_id channel_id, const int recid) if(inst == NULL) return false; - if(ShowMsg(LOCALE_SHUTDOWN_RECODING_QUERY, title.c_str(), + if(ShowMsg(LOCALE_SHUTDOWN_RECORDING_QUERY, title.c_str(), CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) == CMessageBox::mbrYes) { mutex.lock(); if (recid) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index d1a14f960..0c7293e8c 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -99,6 +99,8 @@ #endif #include "gui/themes.h" +#include + #include #include #include @@ -3146,9 +3148,9 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode) bool do_shutdown = true; CRecordManager::getInstance()->StopAutoRecord(); - if(CRecordManager::getInstance()->RecordingStatus()) { + if(CRecordManager::getInstance()->RecordingStatus() || cYTCache::getInstance()->isActive()) { do_shutdown = - (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWN_RECODING_QUERY, CMessageBox::mbrNo, + (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWN_RECORDING_QUERY, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, true) == CMessageBox::mbrYes); } diff --git a/src/system/locals.h b/src/system/locals.h index 1eb382a8c..2c44f8410 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -2074,7 +2074,7 @@ typedef enum LOCALE_SETTINGS_POS_TOP_RIGHT, LOCALE_SETTINGS_RESTORE, LOCALE_SETTINGS_RESTORE_WARN, - LOCALE_SHUTDOWN_RECODING_QUERY, + LOCALE_SHUTDOWN_RECORDING_QUERY, LOCALE_SHUTDOWNTIMER_ANNOUNCE, LOCALE_SLEEPTIMERBOX_ANNOUNCE, LOCALE_SLEEPTIMERBOX_HINT1, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index a683d00dd..17589f4e3 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -2074,7 +2074,7 @@ const char * locale_real_names[] = "settings.pos_top_right", "settings.restore", "settings.restore_warn", - "shutdown.recoding_query", + "shutdown.recording_query", "shutdowntimer.announce", "sleeptimerbox.announce", "sleeptimerbox.hint1", diff --git a/src/system/ytcache.cpp b/src/system/ytcache.cpp index f6e0b8093..e23287868 100644 --- a/src/system/ytcache.cpp +++ b/src/system/ytcache.cpp @@ -36,6 +36,7 @@ #include "settings.h" #include "set_threadname.h" #include +#include static cYTCache *instance = NULL; @@ -178,6 +179,8 @@ void *cYTCache::downloadThread(void *arg) { set_threadname("ytdownload"); cYTCache *caller = (cYTCache *)arg; + //CVFD::getInstance()->ShowIcon(FP_ICON_DOWNLOAD, true); + while (caller->thread) { MI_MOVIE_INFO mi; { @@ -207,6 +210,9 @@ void *cYTCache::downloadThread(void *arg) { caller->pending.erase(caller->pending.begin()); } } + + //CVFD::getInstance()->ShowIcon(FP_ICON_DOWNLOAD, false); + fprintf(stderr, "%s exiting\n", __func__); pthread_exit(NULL); } diff --git a/src/system/ytcache.h b/src/system/ytcache.h index e342a745c..91dcd03e7 100644 --- a/src/system/ytcache.h +++ b/src/system/ytcache.h @@ -63,5 +63,6 @@ class cYTCache void clearCompleted(MI_MOVIE_INFO::miSource source = MI_MOVIE_INFO::YT); void clearFailed(MI_MOVIE_INFO::miSource source = MI_MOVIE_INFO::YT); bool getNameIfExists(std::string &fname, const std::string &id, int itag, std::string ext = ".jpg"); + bool isActive(void) { return (bool) thread; } }; #endif