]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts: switch back to the scan state when new TSID is detected, issue #4942
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 07:43:17 +0000 (08:43 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Feb 2018 07:43:17 +0000 (08:43 +0100)
src/input/mpegts/mpegts_mux.c

index ab7fe94c5096119779fd54a24fe21424ac510417..03303246e3f897a6fa675a99bc704881c9a179c8 100644 (file)
@@ -1319,6 +1319,7 @@ mpegts_mux_set_tsid ( mpegts_mux_t *mm, uint16_t tsid, int force )
     return 0;
   if (!force && mm->mm_tsid != MPEGTS_TSID_NONE)
     return 0;
+  mm->mm_scan_state = MM_SCAN_STATE_ACTIVE;
   mm->mm_tsid = tsid;
   tvhtrace(LS_MPEGTS, "%s - set tsid %04X (%d)", mm->mm_nicename, tsid, tsid);
   idnode_changed(&mm->mm_id);