Don't let packets through TS demuxer if we're not running

This commit is contained in:
Andreas Öman 2010-01-24 22:43:16 +00:00
parent 2b954b69da
commit 5518c17b34

View file

@ -188,6 +188,9 @@ ts_recv_packet1(th_transport_t *t, const uint8_t *tsb, int64_t *pcrp)
int pid, n, m, r;
th_descrambler_t *td;
if(t->tht_status != TRANSPORT_RUNNING)
return;
pthread_mutex_lock(&t->tht_stream_mutex);
transport_set_streaming_status_flags(t, TSS_INPUT_HARDWARE);