ffserver: drop unneeded delay1 var

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
pull/43/merge
Reynaldo H. Verdejo Pinochet 11 years ago
parent db93c2d031
commit 958d98cc1c
  1. 8
      ffserver.c

@ -637,7 +637,7 @@ static void start_multicast(void)
static int http_server(void) static int http_server(void)
{ {
int server_fd = 0, rtsp_server_fd = 0; int server_fd = 0, rtsp_server_fd = 0;
int ret, delay, delay1; int ret, delay;
struct pollfd *poll_table, *poll_entry; struct pollfd *poll_table, *poll_entry;
HTTPContext *c, *c_next; HTTPContext *c, *c_next;
@ -711,9 +711,9 @@ static int http_server(void)
/* when ffserver is doing the timing, we work by /* when ffserver is doing the timing, we work by
looking at which packet needs to be sent every looking at which packet needs to be sent every
10 ms */ 10 ms */
delay1 = 10; /* one tick wait XXX: 10 ms assumed */ /* one tick wait XXX: 10 ms assumed */
if (delay1 < delay) if (delay > 10)
delay = delay1; delay = 10;
} }
break; break;
case HTTPSTATE_WAIT_REQUEST: case HTTPSTATE_WAIT_REQUEST:

Loading…
Cancel
Save