avidemux: do not push discont buffers if they aren't discont

https://bugzilla.gnome.org/show_bug.cgi?id=682110
This commit is contained in:
Arnaud Vrac 2013-05-15 11:13:12 +02:00 committed by Tim-Philipp Müller
parent a344e4d43f
commit 8ed611cdbc

View 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;