validate: pipeline: Handle the case where a pad has no monitor

We do not monitor ghost pads, only real pads, so this is a totally
legitimate case.

https://bugzilla.gnome.org/show_bug.cgi?id=792536
This commit is contained in:
Thibault Saunier 2018-04-27 17:32:38 +02:00
parent d9256865b4
commit ba3b27fa83

View file

@ -165,6 +165,11 @@ _check_pad_query_failures (GstPad * pad, GString * str,
monitor = g_object_get_data (G_OBJECT (pad), "validate-monitor");
if (!monitor) {
GST_DEBUG_OBJECT (pad, "Has no monitor");
return;
}
if (monitor->last_query_res && gst_caps_is_empty (monitor->last_query_res)) {
gst_object_replace ((GstObject **) last_query_caps_fail_monitor,
(GstObject *) monitor);