summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 11:51:34 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-26 11:51:34 +0000
commitd56fe785be5aff1e7618e67dfb3ea12340270553 (patch)
treeec36c67265a09bddc12cafaa894fc9c945a65bdb /command.c
parent2597f0c3e244ad316ad037c6f6dab585624031b4 (diff)
downloadmpv-d56fe785be5aff1e7618e67dfb3ea12340270553.tar.bz2
mpv-d56fe785be5aff1e7618e67dfb3ea12340270553.tar.xz
Add support for dvdnav still frames playback.
Based on various patches from Otvos Attila and MPlayer'ized by me. N.B. Always use -vc ffmpeg12 with dvdnav:// git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25852 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/command.c b/command.c
index d8718b955e..57e2f7a22a 100644
--- a/command.c
+++ b/command.c
@@ -3124,12 +3124,8 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
if (mpctx->stream->type != STREAMTYPE_DVDNAV)
break;
- if (mp_dvdnav_handle_input
- (mpctx->stream, cmd->args[0].v.i, &button)) {
- uninit_player(INITED_ALL - (INITED_STREAM | INITED_INPUT |
- (fixed_vo ? INITED_VO : 0)));
- brk_cmd = 2;
- } else if (button > 0)
+ mp_dvdnav_handle_input(mpctx->stream,cmd->args[0].v.i,&button);
+ if (button > 0)
set_osd_msg(OSD_MSG_TEXT, 1, osd_duration,
"Selected button number %d", button);
}