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
This commit is contained in:
Olivier Crête 2012-09-14 01:28:46 +01:00 committed by Tim-Philipp Müller
parent 0c1686915f
commit bc5cc2eb07

View file

@ -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 /* Note: we gave away ownership of the event at this point but we can still
* print the old pointer */ * print the old pointer */
GST_LOG_OBJECT (pad, GST_LOG_OBJECT (pad, "sent event %p to peerpad %" GST_PTR_FORMAT ", ret %s",
"sent event %" GST_PTR_FORMAT " to peerpad %" event, peerpad, gst_flow_get_name (ret));
GST_PTR_FORMAT ", ret %s", event, peerpad, gst_flow_get_name (ret));
gst_object_unref (peerpad); gst_object_unref (peerpad);