Revision eeffbdea ffserver.c

View differences:

ffserver.c
342 342
    if (!drd->time1 && !drd->count1) {
343 343
        drd->time1 = drd->time2 = cur_time;
344 344
        drd->count1 = drd->count2 = count;
345
    } else {
346
        if (cur_time - drd->time2 > 5000) {
345
    } else if (cur_time - drd->time2 > 5000) {
347 346
            drd->time1 = drd->time2;
348 347
            drd->count1 = drd->count2;
349 348
            drd->time2 = cur_time;
350 349
            drd->count2 = count;
351
        }
352 350
    }
353 351
}
354 352

  

Also available in: Unified diff