]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Adequate locking needed when messing with service streams.
authorAndreas Öman <andreas@lonelycoder.com>
Fri, 5 Sep 2008 21:18:49 +0000 (21:18 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Fri, 5 Sep 2008 21:18:49 +0000 (21:18 +0000)
dvb/dvb_tables.c

index a5799362f45c527caf628a7f14790cd98171aff4..1929f2e26fa99a62ae2619e81b8652d86abf6f56 100644 (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);
 }