[vlc-commits] macosx: prevent continuing playback when pause is requested (fixes #8710)

David Fuhrmann git at videolan.org
Sun Jul 21 15:37:56 CEST 2013


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Jul 21 15:34:04 2013 +0200| [316a0ff3752e5f29499739b7efe60952b0f87a82] | committer: David Fuhrmann

macosx: prevent continuing playback when pause is requested (fixes #8710)
(cherry picked from commit da06b6bfd08228e75019e61aa6d9a8291de86747)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=316a0ff3752e5f29499739b7efe60952b0f87a82
---

 modules/gui/macosx/CoreInteraction.m |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index 047c2fa..ff2155a 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -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



More information about the vlc-commits mailing list