Don't feed packets to the parsers if the transport is not running
This commit is contained in:
parent
6f0c3dfc00
commit
b886e97041
1 changed files with 4 additions and 1 deletions
|
@ -204,11 +204,14 @@ ts_recv_packet1(th_transport_t *t, uint8_t *tsb)
|
|||
if(tsb[1] & 0x80)
|
||||
return; /* Transport Error Indicator */
|
||||
|
||||
t->tht_input_status = TRANSPORT_FEED_RAW_INPUT;
|
||||
|
||||
pid = (tsb[1] & 0x1f) << 8 | tsb[2];
|
||||
if((st = transport_find_stream_by_pid(t, pid)) == NULL)
|
||||
return;
|
||||
|
||||
t->tht_input_status = TRANSPORT_FEED_RAW_INPUT;
|
||||
if(t->tht_status != TRANSPORT_RUNNING)
|
||||
return;
|
||||
|
||||
pthread_mutex_lock(&t->tht_stream_mutex);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue