Commit da06b6bf authored by David Fuhrmann's avatar David Fuhrmann

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

parent 8f8ff669
...@@ -103,7 +103,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil; ...@@ -103,7 +103,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (void)pause - (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 - (void)stop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment