summaryrefslogtreecommitdiffstats
path: root/find_sub.c
diff options
context:
space:
mode:
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);