]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts: ensure that mux descriptor callback is only called with valid mux
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 13 Sep 2013 11:56:02 +0000 (12:56 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 13 Sep 2013 11:56:02 +0000 (12:56 +0100)
src/input/mpegts/dvb_psi.c

index a4e5c6d5fd75890fb6b15be10c3bfc95ff9f3fc1..1acd16f1ef538a328961277d336d0e9473f27309 100644 (file)
@@ -785,7 +785,7 @@ dvb_nit_callback
       tvhtrace(mt->mt_name, "    dtag %02X dlen %d", dtag, dlen);
 
       /* User-defined */
-      if (mt->mt_mux_cb) {
+      if (mt->mt_mux_cb && mux) {
         int i = 0;
         while (mt->mt_mux_cb[i].cb) {
           if (mt->mt_mux_cb[i].tag == dtag)