From 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 7 Jul 2009 02:26:13 +0300 Subject: Remove trailing whitespace from most files --- find_sub.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'find_sub.c') diff --git a/find_sub.c b/find_sub.c index 71841dfa11..07d91d7e55 100644 --- a/find_sub.c +++ b/find_sub.c @@ -1,5 +1,5 @@ //**************************************************************************// -// .SUB +// .SUB //**************************************************************************// #include "config.h" @@ -24,7 +24,7 @@ extern float sub_delay; extern float sub_fps; void step_sub(sub_data *subd, float pts, int movement) { - subtitle *subs; + subtitle *subs; int key; if (subd == NULL) return; @@ -55,10 +55,10 @@ void step_sub(sub_data *subd, float pts, int movement) { void find_sub(sub_data* subd,int key){ subtitle *subs; int i,j; - + if ( !subd || subd->sub_num == 0) return; subs = subd->subtitles; - + if (last_sub_data != subd) { // Sub data changed, reset nosub range. last_sub_data = subd; @@ -80,9 +80,9 @@ void find_sub(sub_data* subd,int key){ vo_sub=NULL; // no sub here return; } - + // printf("\r---- sub changed ----\n"); - + // check next sub. if(current_sub>=0 && current_sub+1 < subd->sub_num){ if(key>subs[current_sub].end && keysub_num - 1; // printf("Searching %d in %d..%d\n",key,subs[i].start,subs[j].end); while(j>=i){ @@ -112,7 +112,7 @@ void find_sub(sub_data* subd,int key){ else return; // found! } // if(key>=vo_sub->start && key<=vo_sub->end) return; // OK! - + // check where are we... if(keystart){ if(current_sub<=0){ @@ -152,7 +152,7 @@ void find_sub(sub_data* subd,int key){ return; } } - + mp_msg(MSGT_FIXME,MSGL_FIXME,"SUB ERROR: %d ? %d --- %d [%d] \n",key,(int)vo_sub->start,(int)vo_sub->end,current_sub); vo_sub=NULL; // no sub here -- cgit v1.2.3