Mercurial > mplayer.hg
comparison stream/cache2.c @ 34703:4ccdcd1ff6ba
Remove variable that is only assigned but never used.
author | reimar |
---|---|
date | Sun, 04 Mar 2012 14:37:31 +0000 |
parents | 26eddbd6353a |
children | cc658103f214 |
comparison
equal
deleted
inserted
replaced
34702:788175a8c14a | 34703:4ccdcd1ff6ba |
---|---|
97 volatile int control_res; | 97 volatile int control_res; |
98 volatile double stream_time_length; | 98 volatile double stream_time_length; |
99 volatile double stream_time_pos; | 99 volatile double stream_time_pos; |
100 } cache_vars_t; | 100 } cache_vars_t; |
101 | 101 |
102 static int min_fill=0; | |
103 | |
104 static void cache_wakeup(stream_t *s) | 102 static void cache_wakeup(stream_t *s) |
105 { | 103 { |
106 #if FORKED_CACHE | 104 #if FORKED_CACHE |
107 // signal process to wake up immediately | 105 // signal process to wake up immediately |
108 kill(s->cache_pid, SIGUSR1); | 106 kill(s->cache_pid, SIGUSR1); |
143 continue; // try again... | 141 continue; // try again... |
144 } | 142 } |
145 sleep_count = 0; | 143 sleep_count = 0; |
146 | 144 |
147 newb=s->max_filepos-s->read_filepos; // new bytes in the buffer | 145 newb=s->max_filepos-s->read_filepos; // new bytes in the buffer |
148 if(newb<min_fill) min_fill=newb; // statistics... | |
149 | 146 |
150 // printf("*** newb: %d bytes ***\n",newb); | 147 // printf("*** newb: %d bytes ***\n",newb); |
151 | 148 |
152 pos=s->read_filepos - s->offset; | 149 pos=s->read_filepos - s->offset; |
153 if(pos<0) pos+=s->buffer_size; else | 150 if(pos<0) pos+=s->buffer_size; else |