summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/command.c b/command.c
index 97c646cc70..52314bc19c 100644
--- a/command.c
+++ b/command.c
@@ -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;