summaryrefslogtreecommitdiffstats
path: root/find_sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'find_sub.c')
-rw-r--r--find_sub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/find_sub.c b/find_sub.c
index 9306c5cb51..573146486f 100644
--- a/find_sub.c
+++ b/find_sub.c
@@ -22,6 +22,11 @@ void find_sub(subtitle* subtitles,int key){
if(key>nosub_range_start && key<nosub_range_end) return; // OK!
}
// sub changed!
+
+ if(key<=0){
+ vo_sub=NULL; // no sub here
+ return;
+ }
// printf("\r---- sub changed ----\n");