Mercurial > mplayer.hg
diff command.c @ 25032:aad0f4a495ab
Fix pausing_toggle not continue play bug when it follows a pause immediately.
| author | ulion |
|---|---|
| date | Sat, 17 Nov 2007 11:23:58 +0000 |
| parents | e446bad0872c |
| children | c04b64054255 |
line wrap: on
line diff
--- a/command.c Fri Nov 16 21:32:09 2007 +0000 +++ b/command.c Sat Nov 17 11:23:58 2007 +0000 @@ -2800,7 +2800,11 @@ 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;
