]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
otamux: fix om_mux_cmp (removed mux in the middle of operation?), fixes #3661
authorJaroslav Kysela <perex@perex.cz>
Sun, 27 Mar 2016 18:13:24 +0000 (20:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 27 Mar 2016 18:13:24 +0000 (20:13 +0200)
src/epggrab/otamux.c

index d9f3cc23c559394cfba47703b2bfbfb0bedf1474..4c29cb3e6b157132af800ba16b0f74bf1142fc4a 100644 (file)
@@ -86,8 +86,11 @@ om_mux_cmp  ( epggrab_ota_mux_t *a, epggrab_ota_mux_t *b )
 {
   mpegts_mux_t *a1 = mpegts_mux_find(a->om_mux_uuid);
   mpegts_mux_t *b1 = mpegts_mux_find(b->om_mux_uuid);
-  assert(a1);
-  assert(b1);
+  if (a1 == NULL || b1 == NULL) {
+    if (a1 == NULL && b1 == NULL)
+      return 0;
+    return a1 == NULL ? 1 : -1;
+  }
   return mpegts_mux_compare(a1, b1);
 }