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:
Havard Graff 2009-10-13 17:24:34 +02:00 committed by Wim Taymans
parent c10d39a804
commit 75853fa79b

View file

@ -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: