qtmux: fix all timestamps once first_ts is determined
This commit is contained in:
parent
258c40c6dd
commit
816e186029
@ -2155,6 +2155,9 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
|||||||
if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_PTS (last_buf))) {
|
if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_PTS (last_buf))) {
|
||||||
pad->first_ts = GST_BUFFER_PTS (last_buf);
|
pad->first_ts = GST_BUFFER_PTS (last_buf);
|
||||||
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_DTS (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…
x
Reference in New Issue
Block a user