mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
qtmux: Don't forget to update pad->last_buf
buf is the current pad->last_buf value. If ever it gets copied/unreffed, we need to make sure to write back the new pointer to the last_buf variable. Fixes using wrong pointer values in the case of decrasing DTS value
This commit is contained in:
parent
7e9b7658e5
commit
7077425c3d
1 changed files with 1 additions and 1 deletions
|
@ -3276,7 +3276,7 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
|||
GST_ERROR ("decreasing DTS value %" GST_TIME_FORMAT " < %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (GST_BUFFER_DTS (buf)),
|
||||
GST_TIME_ARGS (GST_BUFFER_DTS (last_buf)));
|
||||
buf = gst_buffer_make_writable (buf);
|
||||
pad->last_buf = buf = gst_buffer_make_writable (buf);
|
||||
GST_BUFFER_DTS (buf) = GST_BUFFER_DTS (last_buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue