mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
neutrino: use background MP instance in webtv mode
This commit is contained in:
@@ -96,7 +96,7 @@ int CAudioSelectMenuHandler::doMenu ()
|
|||||||
{
|
{
|
||||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_webtv) {
|
if (mode == NeutrinoMessages::mode_webtv) {
|
||||||
CMoviePlayerGui::getInstance().selectAudioPid();
|
CMoviePlayerGui::getInstance(true).selectAudioPid();
|
||||||
return menu_return::RETURN_EXIT;
|
return menu_return::RETURN_EXIT;
|
||||||
}
|
}
|
||||||
CMenuWidget AudioSelector(LOCALE_AUDIOSELECTMENUE_HEAD, NEUTRINO_ICON_AUDIO, width);
|
CMenuWidget AudioSelector(LOCALE_AUDIOSELECTMENUE_HEAD, NEUTRINO_ICON_AUDIO, width);
|
||||||
|
@@ -238,7 +238,7 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
if (text == g_Locale->getText(LOCALE_AUDIOSELECTMENUE_HEAD))
|
if (text == g_Locale->getText(LOCALE_AUDIOSELECTMENUE_HEAD))
|
||||||
text = "";
|
text = "";
|
||||||
if ((mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) && !CMoviePlayerGui::getInstance().timeshift) {
|
if ((mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) && !CMoviePlayerGui::getInstance().timeshift) {
|
||||||
text = CMoviePlayerGui::getInstance().CurrentAudioName();
|
text = CMoviePlayerGui::getInstance(mode == NeutrinoMessages::mode_webtv).CurrentAudioName();
|
||||||
} else if (!g_RemoteControl->current_PIDs.APIDs.empty()) {
|
} else if (!g_RemoteControl->current_PIDs.APIDs.empty()) {
|
||||||
int selected = g_RemoteControl->current_PIDs.PIDs.selected_apid;
|
int selected = g_RemoteControl->current_PIDs.PIDs.selected_apid;
|
||||||
if (text.empty()){
|
if (text.empty()){
|
||||||
|
@@ -4283,7 +4283,7 @@ void CNeutrinoApp::StopSubtitles()
|
|||||||
frameBuffer->paintBackground();
|
frameBuffer->paintBackground();
|
||||||
}
|
}
|
||||||
if (mode == mode_webtv)
|
if (mode == mode_webtv)
|
||||||
CMoviePlayerGui::getInstance().clearSubtitle(true);
|
CMoviePlayerGui::getInstance(true).clearSubtitle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNeutrinoApp::StartSubtitles(bool show)
|
void CNeutrinoApp::StartSubtitles(bool show)
|
||||||
@@ -4294,7 +4294,7 @@ void CNeutrinoApp::StartSubtitles(bool show)
|
|||||||
dvbsub_start(0);
|
dvbsub_start(0);
|
||||||
tuxtx_pause_subtitle(false);
|
tuxtx_pause_subtitle(false);
|
||||||
if (mode == mode_webtv)
|
if (mode == mode_webtv)
|
||||||
CMoviePlayerGui::getInstance().clearSubtitle(false);
|
CMoviePlayerGui::getInstance(true).clearSubtitle(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNeutrinoApp::SelectSubtitles()
|
void CNeutrinoApp::SelectSubtitles()
|
||||||
|
Reference in New Issue
Block a user