mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
pad: increase debug-level to warning for fatal outcomes
This commit is contained in:
parent
3260b2f630
commit
ce7e6a9406
1 changed files with 8 additions and 2 deletions
10
gst/gstpad.c
10
gst/gstpad.c
|
@ -3160,11 +3160,17 @@ gst_pad_query_accept_caps_default (GstPad * pad, GstQuery * query)
|
|||
GST_PTR_FORMAT, allowed, caps);
|
||||
result = gst_caps_is_subset (caps, allowed);
|
||||
}
|
||||
if (!result) {
|
||||
GST_CAT_WARNING_OBJECT (GST_CAT_CAPS, pad, "caps: %" GST_PTR_FORMAT
|
||||
" were not compatible with: %" GST_PTR_FORMAT, caps, allowed);
|
||||
}
|
||||
gst_caps_unref (allowed);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (pad, "no compatible caps allowed on the pad");
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||
"no compatible caps allowed on the pad");
|
||||
result = FALSE;
|
||||
}
|
||||
|
||||
gst_query_set_accept_caps_result (query, result);
|
||||
|
||||
done:
|
||||
|
@ -5621,7 +5627,7 @@ pre_eventfunc_check (GstPad * pad, GstEvent * event)
|
|||
/* ERRORS */
|
||||
not_accepted:
|
||||
{
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||
GST_CAT_WARNING_OBJECT (GST_CAT_CAPS, pad,
|
||||
"caps %" GST_PTR_FORMAT " not accepted", caps);
|
||||
return GST_FLOW_NOT_NEGOTIATED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue