mpegdemux: do not push discont buffers if they aren't discont
authorArnaud Vrac <avrac@freebox.fr>
Wed, 17 Jul 2013 15:12:59 +0000 (17:12 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 17 Jul 2013 17:36:30 +0000 (18:36 +0100)
Explicitly unset discont flag when it shouldn't be set.

https://bugzilla.gnome.org/show_bug.cgi?id=682110

gst/mpegdemux/gstmpegdemux.c

index 93dc06c..4e1a37d 100644 (file)
@@ -627,7 +627,10 @@ gst_flups_demux_send_data (GstFluPSDemux * demux, GstFluPSStream * stream,
     GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
 
     stream->discont = FALSE;
+  } else {
+    GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
   }
+
   size = gst_buffer_get_size (buf);
 
   demux->next_pts = G_MAXUINT64;