From 073d7c93e3870f24938a95c49721488d5bd90202 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 8 Sep 2013 19:04:34 +0200 Subject: [PATCH] movieplayer dont skip RequestAbort --- src/gui/movieplayer.cpp | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 6473768fb..ec9e3316a 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -464,20 +464,23 @@ void *CMoviePlayerGui::ShowStartHint(void *arg) { set_threadname(__func__); CMoviePlayerGui *caller = (CMoviePlayerGui *)arg; + CHintBox *hintbox = NULL; if(!caller->file_name.empty()){ - CHintBox hintbox(LOCALE_MOVIEPLAYER_STARTING, caller->file_name.c_str(), 450, NEUTRINO_ICON_MOVIEPLAYER); - hintbox.paint(); - - while (caller->showStartingHint) { - neutrino_msg_t msg; - neutrino_msg_data_t data; - g_RCInput->getMsg(&msg, &data, 1); - if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) { - if(caller->playback) - caller->playback->RequestAbort(); - } + hintbox = new CHintBox(LOCALE_MOVIEPLAYER_STARTING, caller->file_name.c_str(), 450, NEUTRINO_ICON_MOVIEPLAYER); + hintbox->paint(); + } + while (caller->showStartingHint) { + neutrino_msg_t msg; + neutrino_msg_data_t data; + g_RCInput->getMsg(&msg, &data, 1); + if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) { + if(caller->playback) + caller->playback->RequestAbort(); } - hintbox.hide(); + } + if(hintbox != NULL){ + hintbox->hide(); + delete hintbox; } return NULL; }