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

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


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

macosx: prevent continuing playback when pause is requested (fixes #8710)

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

 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