aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2015-03-29 21:44:51 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2015-03-30 19:15:29 +0200
commit393f06d2b431174f7b491bf32e43ce27b08c6c11 (patch)
tree75a77448c981552e7eeaa8f71f4b044f98c6668a
parentb9cb0938039005cc3dabbf8b90ee706b78420219 (diff)
FIX: [droid;amc] crash when calling dispose twice
-rw-r--r--xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
index c56852e78b..0ebbe637b8 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
@@ -497,6 +497,9 @@ bool CDVDVideoCodecAndroidMediaCodec::Open(CDVDStreamInfo &hints, CDVDCodecOptio
void CDVDVideoCodecAndroidMediaCodec::Dispose()
{
+ if (!m_opened)
+ return;
+
m_opened = false;
// release any retained demux packets