diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-10-02 05:17:23 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-10-02 05:17:23 +0300 |
commit | ebb4abf2081026c63bb5c983f76447d9d2413656 (patch) | |
tree | f2b3ed868645fd2546173be3500f4c3e0cdf3ecc /mplayer.c | |
parent | 849dc0ba31f209dfdb48146512e48ee2203d0ee6 (diff) | |
parent | 20571d6f6870dab84624cc6b6fbac82cde204f16 (diff) | |
download | mpv-ebb4abf2081026c63bb5c983f76447d9d2413656.tar.bz2 mpv-ebb4abf2081026c63bb5c983f76447d9d2413656.tar.xz |
Merge svn changes up to r27682
Addition of the "outdir" suboption to vo_png in svn was reverted
before merging.
Conflicts:
command.c
mplayer.c
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2349,9 +2349,10 @@ static void pause_loop(struct MPContext *mpctx) mpctx->audio_out->pause(); // pause audio, keep data if possible while ( (cmd = mp_input_get_cmd(mpctx->input, 20, 1, 1)) == NULL - || cmd->id == MP_CMD_SET_MOUSE_POS) { + || cmd->id == MP_CMD_SET_MOUSE_POS || cmd->pausing == 4) { if (cmd) { cmd = mp_input_get_cmd(mpctx->input, 0,1,0); + run_command(mpctx, cmd); mp_cmd_free(cmd); continue; } @@ -3559,6 +3560,11 @@ if (mpctx->global_sub_size) { } mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_LENGTH=%.2lf\n", demuxer_get_time_length(mpctx->demuxer)); mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_SEEKABLE=%d\n", mpctx->stream->seek ? 1 : 0); + if (mpctx->demuxer) { + if (mpctx->demuxer->num_chapters == 0) + stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &mpctx->demuxer->num_chapters); + mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_CHAPTERS=%d\n", mpctx->demuxer->num_chapters); + } if(!mpctx->sh_video) goto main; // audio-only @@ -3864,8 +3870,8 @@ if(auto_quality>0){ current_module="pause"; if (mpctx->osd_function == OSD_PAUSE) { - pause_loop(mpctx); mpctx->was_paused = 1; + pause_loop(mpctx); } // handle -sstep |