mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
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:
parent
d9256865b4
commit
ba3b27fa83
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue