From 592e0ed631a3e32c97a28a2c674005e18bdd2277 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 4 Nov 2014 17:59:44 +0100 Subject: [PATCH] CMoviePlayerGui::selectAudioPid() add Analog Audio on/off option --- src/gui/movieplayer.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 22e99d725..18319035b 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -45,6 +45,8 @@ #include #include +#include + #include #include #include @@ -1241,7 +1243,13 @@ void CMoviePlayerGui::selectAudioPid() 0, 999, CVolume::getInstance())); } } - + if (!g_settings.easymenu) { + APIDSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE)); + extern CAudioSetupNotifier * audioSetupNotifier; + APIDSelector.addItem( new CMenuOptionChooser(LOCALE_AUDIOMENU_ANALOG_OUT, &g_settings.analog_out, + OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, + true, audioSetupNotifier, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN) ); + } APIDSelector.exec(NULL, ""); delete selector; printf("CMoviePlayerGui::selectAudioPid: selected %d (%x) current %x\n", select, (select >= 0) ? apids[select] : -1, currentapid);