avidemux: do not push discont buffers if they aren't discont
authorArnaud Vrac <avrac@freebox.fr>
Wed, 15 May 2013 09:13:12 +0000 (11:13 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 15 May 2013 12:16:11 +0000 (13:16 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=682110

gst/avi/gstavidemux.c

index b843e3987260e3e7cfeba8164d71290b9aa702d7..4b4c9ccecb9d55fed8ee9287250ae8f6cb50d7a1 100644 (file)
@@ -4858,6 +4858,8 @@ gst_avi_demux_loop_data (GstAviDemux * avi)
       GST_DEBUG_OBJECT (avi, "setting DISCONT flag");
       GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
       stream->discont = FALSE;
+    } else {
+      GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
     }
 #if 0
     gst_avi_demux_add_assoc (avi, stream, timestamp, offset, keyframe);
@@ -5158,6 +5160,8 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
             GST_DEBUG_OBJECT (avi, "Setting DISCONT");
             GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
             stream->discont = FALSE;
+          } else {
+            GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
           }
           res = gst_pad_push (stream->pad, buf);
           buf = NULL;