diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-05 00:11:12 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-05 00:11:12 +0000 |
commit | 1d94bbed7dc5ddb213c2e12c551051ebe6742813 (patch) | |
tree | e7f62995a7b9ee74021caf507eda9c3bd5c20adb /mplayer.c | |
parent | 919f3710b113c284aef73eeddff53c700c5fc6dc (diff) | |
download | mpv-1d94bbed7dc5ddb213c2e12c551051ebe6742813.tar.bz2 mpv-1d94bbed7dc5ddb213c2e12c551051ebe6742813.tar.xz |
slave-mode commands to get movie length & pos
patch by Balatoni Denes <pnis@coder.hu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8365 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2350,6 +2350,15 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still) case MP_CMD_VF_CHANGE_RECTANGLE: set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i); break; + + case MP_CMD_GET_TIME_LENGTH : { + mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_LENGTH=%ld\n", demuxer_get_time_length(demuxer)); + } break; + + case MP_CMD_GET_PERCENT_POS : { + mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer)); + } break; + #ifdef USE_DVDNAV case MP_CMD_DVDNAV_EVENT: { dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv); |