mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
qtmux: get rid of timestamp overprotectiveness
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
This commit is contained in:
parent
cd690c2bc3
commit
460785352c
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 (buf) && !pad->is_out_of_order) {
|
||||||
if (G_LIKELY (GST_BUFFER_TIMESTAMP_IS_VALID (last_buf) &&
|
if (G_LIKELY (GST_BUFFER_TIMESTAMP_IS_VALID (last_buf) &&
|
||||||
GST_BUFFER_TIMESTAMP_IS_VALID (buf))) {
|
GST_BUFFER_TIMESTAMP_IS_VALID (buf))) {
|
||||||
if ((GST_BUFFER_TIMESTAMP (buf) < GST_BUFFER_TIMESTAMP (last_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)))) {
|
|
||||||
GST_DEBUG_OBJECT (qtmux, "detected out-of-order input");
|
GST_DEBUG_OBJECT (qtmux, "detected out-of-order input");
|
||||||
pad->is_out_of_order = TRUE;
|
pad->is_out_of_order = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue