From 493098040d934dee79a3f80a86b00e9daf6b32fc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 9 Nov 2014 14:42:04 +0300 Subject: [PATCH] gui/movieplayer.cpp: fix volume values in audio selection --- src/gui/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 15a1af378..547cd5deb 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1230,12 +1230,12 @@ void CMoviePlayerGui::selectAudioPid() APIDSelector.addItem(item, defpid); } + int percent[numpida]; if (p_movie_info && numpida <= p_movie_info->audioPids.size()) { APIDSelector.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_AUDIOMENU_VOLUME_ADJUST)); CVolume::getInstance()->SetCurrentChannel(p_movie_info->epgId); CVolume::getInstance()->SetCurrentPid(currentapid); - int percent[numpida]; for (uint i=0; i < numpida; i++) { percent[i] = CZapit::getInstance()->GetPidVolume(p_movie_info->epgId, apids[i], ac3flags[i]); APIDSelector.addItem(new CMenuOptionNumberChooser(p_movie_info->audioPids[i].epgAudioPidName,