fixed: current audio stream var not properly inited.
authorspiff <spiff@xbmc.org>
Wed, 2 Nov 2011 18:44:06 +0000 (19:44 +0100)
committerspiff <spiff@xbmc.org>
Wed, 2 Nov 2011 18:45:19 +0000 (19:45 +0100)
closes #12173, thanks to jhsrennie

xbmc/video/windows/GUIWindowFullScreen.cpp

index 486ae8a..42477c6 100644 (file)
@@ -394,6 +394,9 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action)
       if (g_application.m_pPlayer->GetAudioStreamCount() == 1)
         return true;
 
+      if(g_settings.m_currentVideoSettings.m_AudioStream < 0)
+        g_settings.m_currentVideoSettings.m_AudioStream = g_application.m_pPlayer->GetAudioStream();
+
       g_settings.m_currentVideoSettings.m_AudioStream++;
       if (g_settings.m_currentVideoSettings.m_AudioStream >= g_application.m_pPlayer->GetAudioStreamCount())
         g_settings.m_currentVideoSettings.m_AudioStream = 0;