[rbp/omxplayer] fixed messanger handling.
authorgimli <ebsi4711@gmail.com>
Fri, 28 Dec 2012 22:12:25 +0000 (23:12 +0100)
committergimli <ebsi4711@gmail.com>
Fri, 28 Dec 2012 22:12:25 +0000 (23:12 +0100)
xbmc/cores/omxplayer/OMXPlayer.cpp

index 97001cb..aac591c 100644 (file)
@@ -428,6 +428,9 @@ COMXPlayer::COMXPlayer(IPlayerCallback &callback)
 COMXPlayer::~COMXPlayer()
 {
   CloseFile();
+
+  if(m_messenger.IsInited())
+    m_messenger.End();
 }
 
 bool COMXPlayer::OpenFile(const CFileItem &file, const CPlayerOptions &options)
@@ -2015,7 +2018,7 @@ void COMXPlayer::OnExit()
     // clean up all selection streams
     m_SelectionStreams.Clear(STREAM_NONE, STREAM_SOURCE_NONE);
 
-    m_messenger.End();
+    m_messenger.Flush();
 
     m_av_clock.OMXDeinitialize();