mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
Make sure that unlinked pads do not cause a return false on latency events.
Context: Latency configuration should not be messed up because of not-linked pads. In general, one return FALSE on latency distribution causes the "overall" pipeline latency configuration to fail. This shows up as noise in logs (warning). Conflicts: gst/gstpad.c
This commit is contained in:
parent
c10d39a804
commit
75853fa79b
1 changed files with 5 additions and 0 deletions
|
@ -4430,6 +4430,11 @@ not_linked:
|
|||
GST_DEBUG_OBJECT (pad, "Dropping event because pad is not linked");
|
||||
GST_OBJECT_FLAG_SET (pad, GST_PAD_FLAG_PENDING_EVENTS);
|
||||
gst_event_unref (event);
|
||||
|
||||
/* unlinked pads should not influence latency configuration */
|
||||
if (event_type == GST_EVENT_LATENCY)
|
||||
return GST_FLOW_OK;
|
||||
|
||||
return GST_FLOW_NOT_LINKED;
|
||||
}
|
||||
idle_probe_stopped:
|
||||
|
|
Loading…
Reference in a new issue