aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-17 11:23:58 +0000
committerGravatar ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-17 11:23:58 +0000
commit647585034a58fe27544cea7dd117d4c1a2254488 (patch)
tree1d6006fe5af4a49af59de1f1c978be48feeaeb20
parentadb4813ca8650d3df7345d218e7f47970e097561 (diff)
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
-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;