diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2016-08-13 17:52:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-13 17:52:00 +0200 |
commit | 9b550f8f430e6fce82f96ae9a88d80753e399942 (patch) | |
tree | f0b35ce1bac2fd00393475a95c5598f298f64d84 | |
parent | 5e135f6e6a4da978f04dd6e819c1ab1a3d68c7d7 (diff) | |
parent | c9b5d7e8a8e182448c2dd646d25140b98576cb1f (diff) |
Merge pull request #10283 from mk01/master_resetprocessinfo
[processInfo] reset audio/video codec info
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index 48cb588cf2..41fdfa844e 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -928,7 +928,10 @@ void CVideoPlayer::OpenDefaultStreams(bool reset) } } if(!valid) + { CloseStream(m_CurrentVideo, true); + m_processInfo->ResetVideoCodecInfo(); + } // open audio stream valid = false; @@ -945,7 +948,10 @@ void CVideoPlayer::OpenDefaultStreams(bool reset) } if(!valid) + { CloseStream(m_CurrentAudio, true); + m_processInfo->ResetAudioCodecInfo(); + } // enable or disable subtitles bool visible = CMediaSettings::GetInstance().GetCurrentVideoSettings().m_SubtitleOn; |