mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
qtmux: get rid of timestamp overprotectiveness
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
This commit is contained in:
parent
b6945d4afe
commit
62c728464e
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue