]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Correct (and simplify) mistake in moving of memory at end of partial processing.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 3 Sep 2012 08:58:55 +0000 (09:58 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 3 Sep 2012 08:58:55 +0000 (09:58 +0100)
src/dvb/dvb_adapter.c

index 054250aa01d067dbf02b67d0592804b182d8e677..baad51c65c4e739c60d279607073dc00948b0be9 100644 (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);