Skip to content
This repository
Browse code

[pvr] don't try to set an invalid audio stream id in the player. fixe…

…s 'failed to get stream' errors
  • Loading branch information...
commit 2ff8cca8ef0efeeff79b04319fae17b9c4fd15f3 1 parent 29f6f1b
Lars Op den Kamp authored November 21, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/pvr/addons/PVRClients.cpp
3  xbmc/pvr/addons/PVRClients.cpp
@@ -1078,7 +1078,8 @@ void CPVRClients::LoadCurrentChannelSettings(void)
1078 1078
     }
1079 1079
 
1080 1080
     /* only change the audio stream if it's different */
1081  
-    if (g_application.m_pPlayer->GetAudioStream() != g_settings.m_currentVideoSettings.m_AudioStream)
  1081
+    if (g_application.m_pPlayer->GetAudioStream() != g_settings.m_currentVideoSettings.m_AudioStream &&
  1082
+        g_settings.m_currentVideoSettings.m_AudioStream >= 0)
1082 1083
       g_application.m_pPlayer->SetAudioStream(g_settings.m_currentVideoSettings.m_AudioStream);
1083 1084
 
1084 1085
     g_application.m_pPlayer->SetAVDelay(g_settings.m_currentVideoSettings.m_AudioDelay);

0 notes on commit 2ff8cca

Please sign in to comment.
Something went wrong with that request. Please try again.