mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
flvmux: only store the last buffer timestamp if it's valid
Fixes bug #618305
This commit is contained in:
parent
34d0d59142
commit
cf57f1b220
1 changed files with 1 additions and 1 deletions
|
@ -1193,7 +1193,7 @@ gst_flv_mux_write_buffer (GstFlvMux * mux, GstFlvPad * cpad)
|
|||
|
||||
ret = gst_flv_mux_push (mux, tag);
|
||||
|
||||
if (ret == GST_FLOW_OK)
|
||||
if (ret == GST_FLOW_OK && GST_BUFFER_TIMESTAMP_IS_VALID (tag))
|
||||
cpad->last_timestamp = GST_BUFFER_TIMESTAMP (tag);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue