Commit 62c72846 authored by Felipe Contreras's avatar Felipe Contreras Committed by Tim-Philipp Müller
Browse files

qtmux: get rid of timestamp overprotectiveness


Signed-off-by: default avatarFelipe Contreras <felipe.contreras@nokia.com>
parent b6945d4a
......@@ -1993,13 +1993,7 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
if (G_LIKELY (buf) && !pad->is_out_of_order) {
if (G_LIKELY (GST_BUFFER_TIMESTAMP_IS_VALID (last_buf) &&
GST_BUFFER_TIMESTAMP_IS_VALID (buf))) {
if ((GST_BUFFER_TIMESTAMP (buf) < GST_BUFFER_TIMESTAMP (last_buf)) ||
(!GST_CLOCK_TIME_IS_VALID (pad->first_ts) &&
GST_BUFFER_DURATION_IS_VALID (last_buf) &&
gst_qtmux_check_difference (qtmux,
GST_BUFFER_TIMESTAMP (last_buf) +
GST_BUFFER_DURATION (last_buf), GST_BUFFER_TIMESTAMP (buf),
GST_BUFFER_DURATION (last_buf)))) {
if ((GST_BUFFER_TIMESTAMP (buf) < GST_BUFFER_TIMESTAMP (last_buf))) {
GST_DEBUG_OBJECT (qtmux, "detected out-of-order input");
pad->is_out_of_order = TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment