diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2018-04-27 17:32:38 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-04-27 17:33:29 +0200 |
commit | ba3b27fa8356f84148c6f2b8274baf9604e8f9f8 (patch) | |
tree | 2bba8347c0a711517d63e5ef885ece8c483960f4 | |
parent | d9256865b421c753816cb39476fb0362631527c9 (diff) |
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
-rw-r--r-- | validate/gst/validate/gst-validate-pipeline-monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/validate/gst/validate/gst-validate-pipeline-monitor.c b/validate/gst/validate/gst-validate-pipeline-monitor.c index 6d45486..65e99f7 100644 --- a/validate/gst/validate/gst-validate-pipeline-monitor.c +++ b/validate/gst/validate/gst-validate-pipeline-monitor.c @@ -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); |