mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
gst: improve debugging
This commit is contained in:
parent
da793d7255
commit
a46f0862cd
3 changed files with 5 additions and 1 deletions
|
@ -985,6 +985,7 @@ gst_buffer_map (GstBuffer * buffer, GstMapInfo * info, GstMapFlags flags)
|
|||
/* ERROR */
|
||||
not_writable:
|
||||
{
|
||||
GST_WARNING_OBJECT (buffer, "write map requested on non-writable buffer");
|
||||
g_critical ("write map requested on non-writable buffer");
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -214,13 +214,14 @@ void
|
|||
gst_mini_object_unref (GstMiniObject * mini_object)
|
||||
{
|
||||
g_return_if_fail (mini_object != NULL);
|
||||
g_return_if_fail (mini_object->refcount > 0);
|
||||
|
||||
GST_CAT_TRACE (GST_CAT_REFCOUNTING, "%p unref %d->%d",
|
||||
mini_object,
|
||||
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object),
|
||||
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) - 1);
|
||||
|
||||
g_return_if_fail (mini_object->refcount > 0);
|
||||
|
||||
if (G_UNLIKELY (g_atomic_int_dec_and_test (&mini_object->refcount))) {
|
||||
gboolean do_free;
|
||||
|
||||
|
|
|
@ -4250,6 +4250,8 @@ not_accepted:
|
|||
gst_caps_unref (templ);
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||
"caps %" GST_PTR_FORMAT " not accepted", caps);
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||
"no intersection with template %" GST_PTR_FORMAT, templ);
|
||||
return GST_FLOW_NOT_NEGOTIATED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue