Skip to content
This repository
Browse code

Merge pull request #3206 from herrnst/appplayer-fixreset

ApplicationPlayer: do Reset() directly on the member instead of the sharedptr
  • Loading branch information...
commit 9d75119c02cb25d427b27f3e8e68d19ee077aac8 2 parents af32fce + 61b5c81
Peter Frühberger authored September 07, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  xbmc/ApplicationPlayer.cpp
4  xbmc/ApplicationPlayer.cpp
@@ -42,7 +42,9 @@ void CApplicationPlayer::ClosePlayer()
42 42
   if (player)
43 43
   {
44 44
     CloseFile();
45  
-    player.reset();
  45
+    // we need to do this directly on the member
  46
+    CSingleLock lock(m_player_lock);
  47
+    m_pPlayer.reset();
46 48
   }
47 49
 }
48 50
 

0 notes on commit 9d75119

Please sign in to comment.
Something went wrong with that request. Please try again.