summaryrefslogtreecommitdiffstats
path: root/find_sub.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 08:20:10 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 08:20:10 +0000
commit7e219d9be42b09a0af5ce3483aa3fc5c659d76fd (patch)
treecd485778d6904f3a1174fdff3fe5b941db17e212 /find_sub.c
parent4522bce4ca5bd5f96aaf714a22bde32efbf5f88c (diff)
downloadmpv-7e219d9be42b09a0af5ce3483aa3fc5c659d76fd.tar.bz2
mpv-7e219d9be42b09a0af5ce3483aa3fc5c659d76fd.tar.xz
10L
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9975 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'find_sub.c')
-rw-r--r--find_sub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/find_sub.c b/find_sub.c
index 449788c877..d391d285d1 100644
--- a/find_sub.c
+++ b/find_sub.c
@@ -23,10 +23,11 @@ extern float sub_fps;
void step_sub(sub_data *subd, float pts, int movement) {
subtitle *subs;
- int key = (pts+sub_delay) * (subd->sub_uses_time ? 100 : sub_fps);
+ int key;
if (subd == NULL) return;
subs = subd->subtitles;
+ key = (pts+sub_delay) * (subd->sub_uses_time ? 100 : sub_fps);
/* Tell the OSD subsystem that the OSD contents will change soon */
vo_osd_changed(OSDTYPE_SUBTITLE);