fix next slide by skipping over preroll
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 10 Oct 2009 23:59:09 +0000 (01:59 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 10 Oct 2009 23:59:09 +0000 (01:59 +0200)
bin/mplayer.pl

index a7e8de2..ce8ece5 100755 (executable)
@@ -230,7 +230,7 @@ sub prev_subtitle {
 }
 
 sub next_subtitle {
-       my $pos = time_pos;
+       my $pos = time_pos + $preroll;
        my $s = ( grep { $_->[0] > $pos } @subtitles )[0];
        warn ">>>> subtitle ", sub_fmt $s;
        preroll $s->[0];