mpegtsbase: actually set seen_pat=TRUE when we see a PAT
authorAlessandro Decina <alessandro.d@gmail.com>
Thu, 14 Jul 2011 22:03:10 +0000 (00:03 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Thu, 14 Jul 2011 22:03:52 +0000 (00:03 +0200)
gst/mpegtsdemux/mpegtsbase.c

index a2e7cba..463090a 100644 (file)
@@ -834,7 +834,7 @@ mpegts_base_handle_psi (MpegTSBase * base, MpegTSPacketizerSection * section)
       if (G_LIKELY (structure)) {
         mpegts_base_apply_pat (base, structure);
         if (base->seen_pat == FALSE) {
-
+          base->seen_pat = TRUE;
           base->first_pat_offset = GST_BUFFER_OFFSET (section->buffer);
           GST_DEBUG ("First PAT offset: %" G_GUINT64_FORMAT,
               base->first_pat_offset);