Skip to content
This repository
Browse code

ApplicationPlayer: do Reset() directly on the member instead of the s…

…haredptr
  • Loading branch information...
commit 61b5c81a104e5090badb116b46267ff7d6c06b56 1 parent 4e13c22
Daniel Scheller 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 61b5c81

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