mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
gui/infoviewer.cpp: update movieplayer position also in timeshift mode;
fix messages in timeshift mode: while infobar is visible, all but key events was dropped, preventing ie record timer stop etc.
This commit is contained in:
@@ -924,7 +924,8 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
res = messages_return::cancel_info;
|
res = messages_return::cancel_info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (fileplay && !CMoviePlayerGui::getInstance().timeshift /* && ( (msg == (neutrino_msg_t) g_settings.mpkey_pause) || (msg == (neutrino_msg_t) g_settings.mpkey_rewind) || (msg == (neutrino_msg_t) g_settings.mpkey_play) || (msg == (neutrino_msg_t) g_settings.mpkey_forward) || (msg == (neutrino_msg_t) g_settings.mpkey_stop)) */ ) {
|
} else if (fileplay || CMoviePlayerGui::getInstance().timeshift) {
|
||||||
|
|
||||||
/* this debug message will only hit in movieplayer mode, where console is
|
/* this debug message will only hit in movieplayer mode, where console is
|
||||||
* spammed to death anyway... */
|
* spammed to death anyway... */
|
||||||
printf("%s:%d msg:%08lx, data: %08lx\n", __func__, __LINE__, (long)msg, (long)data);
|
printf("%s:%d msg:%08lx, data: %08lx\n", __func__, __LINE__, (long)msg, (long)data);
|
||||||
@@ -942,6 +943,7 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
CMoviePlayerGui::getInstance().start_timeshift = false;
|
CMoviePlayerGui::getInstance().start_timeshift = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
else if (CMoviePlayerGui::getInstance().timeshift && ((msg == (neutrino_msg_t) g_settings.mpkey_rewind) || \
|
else if (CMoviePlayerGui::getInstance().timeshift && ((msg == (neutrino_msg_t) g_settings.mpkey_rewind) || \
|
||||||
(msg == (neutrino_msg_t) g_settings.mpkey_forward) || \
|
(msg == (neutrino_msg_t) g_settings.mpkey_forward) || \
|
||||||
(msg == (neutrino_msg_t) g_settings.mpkey_pause) || \
|
(msg == (neutrino_msg_t) g_settings.mpkey_pause) || \
|
||||||
@@ -952,6 +954,7 @@ void CInfoViewer::loop(bool show_dot)
|
|||||||
g_RCInput->postMsg (msg, data);
|
g_RCInput->postMsg (msg, data);
|
||||||
res = messages_return::cancel_info;
|
res = messages_return::cancel_info;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hideIt) {
|
if (hideIt) {
|
||||||
@@ -1274,8 +1277,9 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
|
|||||||
} else if (data == lcdUpdateTimer) {
|
} else if (data == lcdUpdateTimer) {
|
||||||
//printf("CInfoViewer::handleMsg: lcdUpdateTimer\n");
|
//printf("CInfoViewer::handleMsg: lcdUpdateTimer\n");
|
||||||
if (is_visible) {
|
if (is_visible) {
|
||||||
if (fileplay) {
|
if (fileplay || CMoviePlayerGui::getInstance().timeshift)
|
||||||
CMoviePlayerGui::getInstance().UpdatePosition();
|
CMoviePlayerGui::getInstance().UpdatePosition();
|
||||||
|
if (fileplay) {
|
||||||
char runningRest[32]; // %d can be 10 digits max...
|
char runningRest[32]; // %d can be 10 digits max...
|
||||||
int curr_pos = CMoviePlayerGui::getInstance().GetPosition();
|
int curr_pos = CMoviePlayerGui::getInstance().GetPosition();
|
||||||
int duration = CMoviePlayerGui::getInstance().GetDuration();
|
int duration = CMoviePlayerGui::getInstance().GetDuration();
|
||||||
|
Reference in New Issue
Block a user