Mercurial > mplayer.hg
changeset 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 | 5e1e61012a05 |
children | 3dceb6c96307 |
files | command.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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;