mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
basesink: take timestamp later
Make sure we don't accidentally cast a bufferlist of a buffer and try to take the timestamp of it. Refixes #585960
This commit is contained in:
parent
0e66315f2d
commit
27fe127e76
1 changed files with 2 additions and 3 deletions
|
@ -2849,9 +2849,6 @@ gst_base_sink_preroll_object (GstBaseSink * basesink, gboolean is_list,
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
GstClockTime timestamp;
|
GstClockTime timestamp;
|
||||||
|
|
||||||
buf = GST_BUFFER_CAST (obj);
|
|
||||||
timestamp = GST_BUFFER_TIMESTAMP (buf);
|
|
||||||
|
|
||||||
if (is_list) {
|
if (is_list) {
|
||||||
GstBufferListIterator *it;
|
GstBufferListIterator *it;
|
||||||
gboolean got_group;
|
gboolean got_group;
|
||||||
|
@ -2866,6 +2863,8 @@ gst_base_sink_preroll_object (GstBaseSink * basesink, gboolean is_list,
|
||||||
buf = GST_BUFFER_CAST (obj);
|
buf = GST_BUFFER_CAST (obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timestamp = GST_BUFFER_TIMESTAMP (buf);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (basesink, "preroll buffer %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (basesink, "preroll buffer %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (timestamp));
|
GST_TIME_ARGS (timestamp));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue