summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:15:56 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:15:56 +0000
commit05802842c9d8f1d3ff5296c1d5962f24f3ee5807 (patch)
tree263932e3e624a328606900e604597ab4d6c24977 /mplayer.c
parent1d94bbed7dc5ddb213c2e12c551051ebe6742813 (diff)
downloadmpv-05802842c9d8f1d3ff5296c1d5962f24f3ee5807.tar.bz2
mpv-05802842c9d8f1d3ff5296c1d5962f24f3ee5807.tar.xz
This patch makes it possible to navigate among the subtitles while
playing movies. It can be very useful when using desynched subtitles. A new command 'sub_step' is added, which takes an integer argument. 'sub_step +1' will immediately display the next subtitle, adjusting sub_delay as if one had used the 'sub_delay' command to navigate to the subtitle. 'sub_step -1' displays the previous subtitle and adjusts the sub_delay. By using these two commands you can navigate among the subtitles without having to search blindly using 'sub_delay'. patch by Oskar Liljeblad (oskar@osk.mine.nu) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8366 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 73bfaa60a3..744a33da62 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2038,6 +2038,11 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
sub_delay += v;
osd_show_sub_delay = 9; // show the subdelay in OSD
} break;
+ case MP_CMD_SUB_STEP : {
+ int movement = cmd->args[0].v.i;
+ step_sub(subtitles, d_video->pts, movement);
+ osd_show_sub_delay = 9; // show the subdelay in OSD
+ } break;
case MP_CMD_OSD :
if(sh_video) {
int v = cmd->args[0].v.i;