summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-22 16:42:26 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-23 18:17:06 +0200
commit01e45b25b75123e9fc311249964c11c6e08c6f71 (patch)
treea12ae1d9790d9d511a2e6e85d650ab6d92c6f071
parent6fb5f853544a9f25265ab8228e5a54d32c2d0b6a (diff)
qtmux: Error out much earlier if we don't have a valid PTS
https://bugzilla.gnome.org/show_bug.cgi?id=774840
-rw-r--r--gst/isomp4/gstqtmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c
index 5f1d35a0a..a7ca37580 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -3204,6 +3204,9 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
gst_buffer_ref (last_buf);
}
+ if (!GST_BUFFER_PTS_IS_VALID (last_buf))
+ goto no_pts;
+
/* if this is the first buffer, store the timestamp */
if (G_UNLIKELY (pad->first_ts == GST_CLOCK_TIME_NONE) && last_buf) {
if (GST_BUFFER_PTS_IS_VALID (last_buf)) {
@@ -3358,9 +3361,6 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
sync = TRUE;
}
- if (!GST_BUFFER_PTS_IS_VALID (last_buf))
- goto no_pts;
-
if (GST_BUFFER_DTS_IS_VALID (last_buf)) {
last_dts = gst_util_uint64_scale_round (GST_BUFFER_DTS (last_buf),
atom_trak_get_timescale (pad->trak), GST_SECOND);