mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
Fix pausing_toggle not continue play bug when it follows a pause immediately.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25060 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
adb4813ca8
commit
647585034a
@ -2800,7 +2800,11 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
|
||||
break;
|
||||
case 3: // "pausing_toggle"
|
||||
mpctx->was_paused = !mpctx->was_paused;
|
||||
// fall through
|
||||
if (mpctx->was_paused)
|
||||
mpctx->osd_function = OSD_PAUSE;
|
||||
else if (mpctx->osd_function == OSD_PAUSE)
|
||||
mpctx->osd_function = OSD_PLAY;
|
||||
break;
|
||||
case 2: // "pausing_keep"
|
||||
if (mpctx->was_paused)
|
||||
mpctx->osd_function = OSD_PAUSE;
|
||||
|
Loading…
Reference in New Issue
Block a user