mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
qtmux: Fix test regression with one buffer streams
This commit is contained in:
parent
5bd2864101
commit
c0443a17c4
1 changed files with 4 additions and 2 deletions
|
@ -2154,8 +2154,10 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
||||||
GST_DEBUG ("setting first_ts to %" G_GUINT64_FORMAT, pad->first_ts);
|
GST_DEBUG ("setting first_ts to %" G_GUINT64_FORMAT, pad->first_ts);
|
||||||
check_and_subtract_ts (qtmux, &GST_BUFFER_DTS (last_buf), pad->first_ts);
|
check_and_subtract_ts (qtmux, &GST_BUFFER_DTS (last_buf), pad->first_ts);
|
||||||
check_and_subtract_ts (qtmux, &GST_BUFFER_PTS (last_buf), pad->first_ts);
|
check_and_subtract_ts (qtmux, &GST_BUFFER_PTS (last_buf), pad->first_ts);
|
||||||
|
if (buf) {
|
||||||
check_and_subtract_ts (qtmux, &GST_BUFFER_DTS (buf), pad->first_ts);
|
check_and_subtract_ts (qtmux, &GST_BUFFER_DTS (buf), pad->first_ts);
|
||||||
check_and_subtract_ts (qtmux, &GST_BUFFER_PTS (buf), pad->first_ts);
|
check_and_subtract_ts (qtmux, &GST_BUFFER_PTS (buf), pad->first_ts);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
GST_ERROR_OBJECT (qtmux, "First buffer for pad %s has no timestamp, "
|
GST_ERROR_OBJECT (qtmux, "First buffer for pad %s has no timestamp, "
|
||||||
"using 0 as first timestamp", GST_PAD_NAME (pad->collect.pad));
|
"using 0 as first timestamp", GST_PAD_NAME (pad->collect.pad));
|
||||||
|
|
Loading…
Reference in a new issue