From: Adam Sutton Date: Mon, 3 Sep 2012 08:58:55 +0000 (+0100) Subject: Correct (and simplify) mistake in moving of memory at end of partial processing. X-Git-Tag: 3.3~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebf95d795155329375970c37ee993fc2e55570e9;p=thirdparty%2Ftvheadend.git Correct (and simplify) mistake in moving of memory at end of partial processing. --- diff --git a/src/dvb/dvb_adapter.c b/src/dvb/dvb_adapter.c index 054250aa0..baad51c65 100644 --- a/src/dvb/dvb_adapter.c +++ b/src/dvb/dvb_adapter.c @@ -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);