mpegtsmux: unset the current PCR stream when starting a new unit
authorAlessandro Decina <alessandro.d@gmail.com>
Sun, 18 Dec 2011 16:32:11 +0000 (17:32 +0100)
committerAlessandro Decina <alessandro.d@gmail.com>
Sun, 18 Dec 2011 16:32:11 +0000 (17:32 +0100)
Unset the current PCR stream when starting a new unit so that afterwards a new
stream is selected as PCR and PAT and PMT tables are regenerated.

gst/mpegtsmux/mpegtsmux.c

index f204d06..f4b375e 100644 (file)
@@ -920,6 +920,7 @@ mpegtsmux_collected (GstCollectPads2 * pads, MpegTsMux * mux)
 
           program->last_pmt_ts = -1;
         }
+        tsmux_program_set_pcr_stream (prog, NULL);
       }
     }