From 393f06d2b431174f7b491bf32e43ce27b08c6c11 Mon Sep 17 00:00:00 2001 From: "Chris \"Koying\" Browet" Date: Sun, 29 Mar 2015 21:44:51 +0200 Subject: FIX: [droid;amc] crash when calling dispose twice --- .../cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3