mpegts: ensure that partial (TS packet) reads are properly handled
This commit is contained in:
parent
ea99e7b3c6
commit
88fddda7e1
2 changed files with 2 additions and 1 deletions
|
@ -398,6 +398,7 @@ iptv_input_thread ( void *aux )
|
|||
// TODO: close and remove?
|
||||
continue;
|
||||
}
|
||||
r += pos;
|
||||
|
||||
pthread_mutex_lock(&iptv_lock);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue