comparison find_sub.c @ 3543:5a11cbf8791f

some small sub bug fix
author pontscho
date Mon, 17 Dec 2001 00:07:20 +0000
parents 283eab7c4c8e
children 156482788caf
comparison
equal deleted inserted replaced
3542:465329581ad8 3543:5a11cbf8791f
23 static int nosub_range_start=-1; 23 static int nosub_range_start=-1;
24 static int nosub_range_end=-1; 24 static int nosub_range_end=-1;
25 25
26 void find_sub(subtitle* subtitles,int key){ 26 void find_sub(subtitle* subtitles,int key){
27 int i,j; 27 int i,j;
28
29 if ( !subtitles ) return;
30
28 if(vo_sub){ 31 if(vo_sub){
29 if(key>=vo_sub->start && key<=vo_sub->end) return; // OK! 32 if(key>=vo_sub->start && key<=vo_sub->end) return; // OK!
30 } else { 33 } else {
31 if(key>nosub_range_start && key<nosub_range_end) return; // OK! 34 if(key>nosub_range_start && key<nosub_range_end) return; // OK!
32 } 35 }