aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfritsch <Peter.Fruehberger@gmail.com>2016-02-04 20:19:46 +0100
committerfritsch <Peter.Fruehberger@gmail.com>2016-02-04 20:21:45 +0100
commitac11d23bfe48616fbd21b26297794f1354fa2c3f (patch)
tree37781b4afd7a23c743eaa37d30c061c2a8325749
parentc3e572eb010cc189873fac1f0ca103759f5a8717 (diff)
VideoPlayer: Check demuxer before accessing it
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
index 52720a2d1a..5116105daf 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -3228,6 +3228,9 @@ int CVideoPlayer::GetSubtitle()
void CVideoPlayer::UpdateStreamInfos()
{
+ if (!m_pDemuxer)
+ return;
+
CSingleLock lock(m_SelectionStreams.m_section);
int streamId;
std::string retVal;