mpegts: ensure that partial (TS packet) reads are properly handled

This commit is contained in:
Adam Sutton 2013-08-22 22:04:23 +01:00
parent ea99e7b3c6
commit 88fddda7e1
2 changed files with 2 additions and 1 deletions

View file

@ -398,6 +398,7 @@ iptv_input_thread ( void *aux )
// TODO: close and remove?
continue;
}
r += pos;
pthread_mutex_lock(&iptv_lock);

View file

@ -640,7 +640,7 @@ linuxdvb_frontend_input_thread ( void *aux )
}
/* Process */
pos = mpegts_input_recv_packets((mpegts_input_t*)lfe, mmi, tsb, c,
pos = mpegts_input_recv_packets((mpegts_input_t*)lfe, mmi, tsb, c+pos,
NULL, NULL, buf);
}