summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.com>2012-09-14 01:28:46 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-14 01:28:46 +0100
commitbc5cc2eb0707bbdbebb17b4220322061a4114ed3 (patch)
tree6d134f922384fff60e79fc893af5a5a7a25cd6de
parent0c1686915f6711ebb53699a51c6c708485274d2d (diff)
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
-rw-r--r--gst/gstpad.c5
1 files 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);