flvmux: Fix DTS validity check

This check was up-side-down, causing a bad timestamp at start
and then all timestamp being delayed.

https://bugzilla.gnome.org/show_bug.cgi?id=751298
This commit is contained in:
Nicolas Dufresne 2015-06-21 19:22:10 -04:00
parent d6e1e744a7
commit 212f39ee1d

View file

@ -1008,7 +1008,7 @@ gst_flv_mux_buffer_to_tag_internal (GstFlvMux * mux, GstBuffer * buffer,
guint8 *data, *bdata;
gsize bsize;
if (GST_CLOCK_STIME_IS_VALID (cpad->dts)) {
if (!GST_CLOCK_STIME_IS_VALID (cpad->dts)) {
pts = dts = cpad->last_timestamp / GST_MSECOND;
} else {
pts = cpad->pts / GST_MSECOND;