Mercurial > mplayer.hg
comparison find_sub.c @ 1203:5f0d9239c5b2
sub at key=0 fixed
author | arpi_esp |
---|---|
date | Sat, 23 Jun 2001 16:59:40 +0000 |
parents | 9bdb59e8887d |
children | d02e0dcaf077 |
comparison
equal
deleted
inserted
replaced
1202:66e5cd717d8f | 1203:5f0d9239c5b2 |
---|---|
20 if(key>=vo_sub->start && key<=vo_sub->end) return; // OK! | 20 if(key>=vo_sub->start && key<=vo_sub->end) return; // OK! |
21 } else { | 21 } else { |
22 if(key>nosub_range_start && key<nosub_range_end) return; // OK! | 22 if(key>nosub_range_start && key<nosub_range_end) return; // OK! |
23 } | 23 } |
24 // sub changed! | 24 // sub changed! |
25 | |
26 if(key<=0){ | |
27 vo_sub=NULL; // no sub here | |
28 return; | |
29 } | |
25 | 30 |
26 // printf("\r---- sub changed ----\n"); | 31 // printf("\r---- sub changed ----\n"); |
27 | 32 |
28 // check next sub. | 33 // check next sub. |
29 if(current_sub>=0 && current_sub+1<sub_num){ | 34 if(current_sub>=0 && current_sub+1<sub_num){ |