Adequate locking needed when messing with service streams.

This commit is contained in:
Andreas Öman 2008-09-05 21:18:49 +00:00
parent 10c457edc2
commit 88310ee267

View file

@ -790,7 +790,9 @@ dvb_pmt_callback(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
uint8_t tableid, void *opaque)
{
th_transport_t *t = opaque;
pthread_mutex_lock(&t->tht_stream_mutex);
psi_parse_pmt(t, ptr, len, 1);
pthread_mutex_unlock(&t->tht_stream_mutex);
}