mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
qtmux: make sure duration is a valid number for last buffer
https://bugzilla.gnome.org/show_bug.cgi?id=707340
This commit is contained in:
parent
4e3c13c87c
commit
39f7e52266
1 changed files with 6 additions and 0 deletions
|
@ -2151,6 +2151,12 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
|||
}
|
||||
}
|
||||
|
||||
if (last_buf && !buf && !GST_BUFFER_DURATION_IS_VALID (last_buf)) {
|
||||
/* this is last buffer; there is no next buffer so we need valid number as duration */
|
||||
last_buf = gst_buffer_make_writable (last_buf);
|
||||
GST_BUFFER_DURATION (last_buf) = 0;
|
||||
}
|
||||
|
||||
if (last_buf == NULL) {
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
if (buf == NULL) {
|
||||
|
|
Loading…
Reference in a new issue