mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtmux: Use PTS to figure-out presence of gaps
We need to look at the presentation timestamp in order to conclude if there is a gap at the start of a stream. https://bugzilla.gnome.org/show_bug.cgi?id=751242
This commit is contained in:
parent
feda525591
commit
7b8615d4fc
1 changed files with 3 additions and 3 deletions
|
@ -3039,10 +3039,10 @@ gst_qt_mux_add_buffer (GstQTMux * qtmux, GstQTPad * pad, GstBuffer * buf)
|
||||||
|
|
||||||
/* 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_DTS_IS_VALID (last_buf)) {
|
if (GST_BUFFER_PTS_IS_VALID (last_buf)) {
|
||||||
pad->first_ts = GST_BUFFER_DTS (last_buf);
|
|
||||||
} else if (GST_BUFFER_PTS_IS_VALID (last_buf)) {
|
|
||||||
pad->first_ts = GST_BUFFER_PTS (last_buf);
|
pad->first_ts = GST_BUFFER_PTS (last_buf);
|
||||||
|
} else if (GST_BUFFER_DTS_IS_VALID (last_buf)) {
|
||||||
|
pad->first_ts = GST_BUFFER_DTS (last_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (pad->first_ts)) {
|
if (GST_CLOCK_TIME_IS_VALID (pad->first_ts)) {
|
||||||
|
|
Loading…
Reference in a new issue