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:
Nicolas Dufresne 2014-08-28 15:03:50 -04:00
parent d46631c5c7
commit 356defdfea

View file

@ -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;