]> git.sesse.net Git - vlc/commitdiff
macosx: prevent continuing playback when pause is requested (fixes #8710)
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sun, 21 Jul 2013 13:34:04 +0000 (15:34 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sun, 21 Jul 2013 13:37:08 +0000 (15:37 +0200)
modules/gui/macosx/CoreInteraction.m

index 047c2faefc354463daf159f22c1535e87c009ffd..ff2155aa0f98ac3f5b64ab6e9a1de4af392723db 100644 (file)
@@ -103,7 +103,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
 
 - (void)pause
 {
-    playlist_Pause(pl_Get(VLCIntf));
+    playlist_t *p_playlist = pl_Get(VLCIntf);
+
+    PL_LOCK;
+    bool b_playlist_playing = playlist_Status(p_playlist) == PLAYLIST_RUNNING;
+    PL_UNLOCK;
+
+    if (b_playlist_playing)
+        playlist_Pause(p_playlist);
 }
 
 - (void)stop