Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
@opdenkamp opdenkamp authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/pvr/addons/PVRClients.cpp
View
3  xbmc/pvr/addons/PVRClients.cpp
@@ -1078,7 +1078,8 @@ void CPVRClients::LoadCurrentChannelSettings(void)
}
/* only change the audio stream if it's different */
- if (g_application.m_pPlayer->GetAudioStream() != g_settings.m_currentVideoSettings.m_AudioStream)
+ if (g_application.m_pPlayer->GetAudioStream() != g_settings.m_currentVideoSettings.m_AudioStream &&
+ g_settings.m_currentVideoSettings.m_AudioStream >= 0)
g_application.m_pPlayer->SetAudioStream(g_settings.m_currentVideoSettings.m_AudioStream);
g_application.m_pPlayer->SetAVDelay(g_settings.m_currentVideoSettings.m_AudioDelay);
Please sign in to comment.
Something went wrong with that request. Please try again.