mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
aggregator: Immediately return NONE from simple_get_next_time() on non-TIME segments
Otherwise this gives critical warnings. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7511>
This commit is contained in:
parent
f30321538b
commit
03d2b28559
1 changed files with 5 additions and 0 deletions
|
@ -4010,6 +4010,11 @@ gst_aggregator_simple_get_next_time (GstAggregator * self)
|
||||||
GstSegment *segment = &srcpad->segment;
|
GstSegment *segment = &srcpad->segment;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (self);
|
GST_OBJECT_LOCK (self);
|
||||||
|
if (segment->format != GST_FORMAT_TIME) {
|
||||||
|
GST_OBJECT_UNLOCK (self);
|
||||||
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
if (segment->position == -1 || segment->position < segment->start)
|
if (segment->position == -1 || segment->position < segment->start)
|
||||||
next_time = segment->start;
|
next_time = segment->start;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue