summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:11:12 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:11:12 +0000
commit1d94bbed7dc5ddb213c2e12c551051ebe6742813 (patch)
treee7f62995a7b9ee74021caf507eda9c3bd5c20adb /mplayer.c
parent919f3710b113c284aef73eeddff53c700c5fc6dc (diff)
downloadmpv-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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index df099c19a5..73bfaa60a3 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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);