Correct (and simplify) mistake in moving of memory at end of partial processing.

This commit is contained in:
Adam Sutton 2012-09-03 09:58:55 +01:00
parent b365cd1ac7
commit ebf95d7951

View file

@ -778,10 +778,8 @@ dvb_adapter_input_dvr(void *aux)
pthread_mutex_unlock(&tda->tda_delivery_mutex);
/* reset buffer */
if (r && r < i) {
memcpy(tsb, tsb+i, r);
i = 0;
}
if (r) {memmove(tsb, tsb+i, r);printf("move");}
i = 0;
}
close(efd);