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:
ulion 2007-11-17 11:23:58 +00:00
parent adb4813ca8
commit 647585034a
1 changed files with 5 additions and 1 deletions

View File

@ -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;