mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
movieplayer: ask before stop temporary timeshift
Origin commit data
------------------
Branch: ni/coolstream
Commit: f9c7662c73
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Origin message was:
------------------
- movieplayer: ask before stop temporary timeshift
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <gui/widget/helpbox.h>
|
||||
#include <gui/infoclock.h>
|
||||
#include <gui/plugins.h>
|
||||
#include <gui/widget/messagebox.h>
|
||||
#include <driver/screenshot.h>
|
||||
#include <driver/volume.h>
|
||||
#include <driver/abstime.h>
|
||||
@@ -647,7 +648,11 @@ void CMoviePlayerGui::PlayFile(void)
|
||||
if (msg == (neutrino_msg_t) g_settings.mpkey_plugin) {
|
||||
g_PluginList->startPlugin_by_name(g_settings.movieplayer_plugin.c_str ());
|
||||
} else if (msg == (neutrino_msg_t) g_settings.mpkey_stop) {
|
||||
playstate = CMoviePlayerGui::STOPPED;
|
||||
bool stop_it = true;
|
||||
if ((timeshift) && (g_settings.temp_timeshift))
|
||||
stop_it = (ShowMsg(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT_STOP, CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) != CMessageBox::mbrYes);
|
||||
if (stop_it)
|
||||
playstate = CMoviePlayerGui::STOPPED;
|
||||
if ((duration - position) > 600000)
|
||||
makeScreenShot(true);
|
||||
} else if (msg == (neutrino_msg_t) g_settings.mpkey_play) {
|
||||
|
Reference in New Issue
Block a user