From bc5cc2eb0707bbdbebb17b4220322061a4114ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 14 Sep 2012 01:28:46 +0100 Subject: [PATCH] pad: don't try to pretty-print event after we've given away ownership Might cause crashes with debug logging enabled. https://bugzilla.gnome.org/show_bug.cgi?id=683996 --- gst/gstpad.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index b07fc4be0f..60f1d6e918 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -4480,9 +4480,8 @@ gst_pad_push_event_unchecked (GstPad * pad, GstEvent * event, /* Note: we gave away ownership of the event at this point but we can still * print the old pointer */ - GST_LOG_OBJECT (pad, - "sent event %" GST_PTR_FORMAT " to peerpad %" - GST_PTR_FORMAT ", ret %s", event, peerpad, gst_flow_get_name (ret)); + GST_LOG_OBJECT (pad, "sent event %p to peerpad %" GST_PTR_FORMAT ", ret %s", + event, peerpad, gst_flow_get_name (ret)); gst_object_unref (peerpad);