]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts mux: correct mpegts_mux_set_tsid() - none check
authorJaroslav Kysela <perex@perex.cz>
Fri, 27 May 2016 18:45:26 +0000 (20:45 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 27 May 2016 18:45:26 +0000 (20:45 +0200)
src/input/mpegts/mpegts_mux.c

index 40292e3e3564fdbeae06a65c96351fd415e73645..9e98c0c579ae9484bb8c6a05a662bb7e0fb4eece 100644 (file)
@@ -1230,7 +1230,7 @@ mpegts_mux_set_tsid ( mpegts_mux_t *mm, uint16_t tsid, int force )
 {
   if (tsid == mm->mm_tsid)
     return 0;
-  if (!force && mm->mm_tsid)
+  if (!force && mm->mm_tsid != MPEGTS_TSID_NONE)
     return 0;
   mm->mm_tsid = tsid;
   if (tvhtrace_enabled()) {