mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
flvmux: Fallback to PTS if DTS is missing
Fixing a regression introduce when fixing: https://bugzilla.gnome.org/show_bug.cgi?id=731352
This commit is contained in:
parent
d46631c5c7
commit
356defdfea
1 changed files with 2 additions and 0 deletions
|
@ -1008,6 +1008,8 @@ gst_flv_mux_buffer_to_tag_internal (GstFlvMux * mux, GstBuffer * buffer,
|
|||
|
||||
if (GST_BUFFER_DTS_IS_VALID (buffer))
|
||||
dts = GST_BUFFER_DTS (buffer) / GST_MSECOND;
|
||||
else if (GST_BUFFER_PTS_IS_VALID (buffer))
|
||||
dts = GST_BUFFER_PTS (buffer) / GST_MSECOND;
|
||||
else
|
||||
dts = cpad->last_timestamp / GST_MSECOND;
|
||||
|
||||
|
|
Loading…
Reference in a new issue