Mercurial > mplayer.hg
diff mplayer.c @ 33615:1f9a31d4f114
Replace all playback integer constants by their symbolic constants.
author | ib |
---|---|
date | Wed, 22 Jun 2011 12:53:30 +0000 |
parents | 79743a5cf4f0 |
children | 442726a401f1 |
line wrap: on
line diff
--- a/mplayer.c Wed Jun 22 12:12:50 2011 +0000 +++ b/mplayer.c Wed Jun 22 12:53:30 2011 +0000 @@ -2558,7 +2558,7 @@ if (use_gui) { guiEventHandling(); guiGetEvent(guiReDraw, NULL); - if (guiInfo.Playing != 2 || (rel_seek_secs || abs_seek_pos)) + if (guiInfo.Playing != GUI_PAUSE || (rel_seek_secs || abs_seek_pos)) break; } #endif @@ -3052,7 +3052,7 @@ if (use_gui) { guiInit(); guiGetEvent(guiSetContext, mpctx); - guiGetEvent(guiSetState, (char *)((gui_no_filename) ? 0 : 1)); + guiGetEvent(guiSetState, (void *)((gui_no_filename) ? GUI_STOP : GUI_PLAY)); } #endif @@ -3091,7 +3091,7 @@ if (use_gui) { mpctx->file_format = DEMUXER_TYPE_UNKNOWN; guiGetEvent(guiSetDefaults, 0); - while (guiInfo.Playing != 1) { + while (guiInfo.Playing != GUI_PLAY) { mp_cmd_t *cmd; usec_sleep(20000); guiEventHandling(); @@ -4006,9 +4006,9 @@ guiInfo.LengthInSec = demuxer_get_time_length(mpctx->demuxer); guiGetEvent(guiReDraw, NULL); guiGetEvent(guiSetVolume, NULL); - if (guiInfo.Playing == 0) + if (guiInfo.Playing == GUI_STOP) break; // STOP - if (guiInfo.Playing == 2) + if (guiInfo.Playing == GUI_PAUSE) mpctx->osd_function = OSD_PAUSE; if (guiInfo.DiskChanged || guiInfo.NewPlay) goto goto_next_file;