mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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 */
|
/* ERROR */
|
||||||
not_writable:
|
not_writable:
|
||||||
{
|
{
|
||||||
|
GST_WARNING_OBJECT (buffer, "write map requested on non-writable buffer");
|
||||||
g_critical ("write map requested on non-writable buffer");
|
g_critical ("write map requested on non-writable buffer");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,13 +214,14 @@ void
|
||||||
gst_mini_object_unref (GstMiniObject * mini_object)
|
gst_mini_object_unref (GstMiniObject * mini_object)
|
||||||
{
|
{
|
||||||
g_return_if_fail (mini_object != NULL);
|
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",
|
GST_CAT_TRACE (GST_CAT_REFCOUNTING, "%p unref %d->%d",
|
||||||
mini_object,
|
mini_object,
|
||||||
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object),
|
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object),
|
||||||
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) - 1);
|
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))) {
|
if (G_UNLIKELY (g_atomic_int_dec_and_test (&mini_object->refcount))) {
|
||||||
gboolean do_free;
|
gboolean do_free;
|
||||||
|
|
||||||
|
|
|
@ -4250,6 +4250,8 @@ not_accepted:
|
||||||
gst_caps_unref (templ);
|
gst_caps_unref (templ);
|
||||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||||
"caps %" GST_PTR_FORMAT " not accepted", caps);
|
"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;
|
return GST_FLOW_NOT_NEGOTIATED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue