mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
qtmux: Error out much earlier if we don't have a valid PTS
https://bugzilla.gnome.org/show_bug.cgi?id=774840
This commit is contained in:
parent
6fb5f85354
commit
01e45b25b7
1 changed files with 3 additions and 3 deletions
|
@ -3204,6 +3204,9 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
||||||
gst_buffer_ref (last_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 this is the first buffer, store the timestamp */
|
||||||
if (G_UNLIKELY (pad->first_ts == GST_CLOCK_TIME_NONE) && last_buf) {
|
if (G_UNLIKELY (pad->first_ts == GST_CLOCK_TIME_NONE) && last_buf) {
|
||||||
if (GST_BUFFER_PTS_IS_VALID (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;
|
sync = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GST_BUFFER_PTS_IS_VALID (last_buf))
|
|
||||||
goto no_pts;
|
|
||||||
|
|
||||||
if (GST_BUFFER_DTS_IS_VALID (last_buf)) {
|
if (GST_BUFFER_DTS_IS_VALID (last_buf)) {
|
||||||
last_dts = gst_util_uint64_scale_round (GST_BUFFER_DTS (last_buf),
|
last_dts = gst_util_uint64_scale_round (GST_BUFFER_DTS (last_buf),
|
||||||
atom_trak_get_timescale (pad->trak), GST_SECOND);
|
atom_trak_get_timescale (pad->trak), GST_SECOND);
|
||||||
|
|
Loading…
Reference in a new issue