mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pad: don't access unowned and possibly already freed event
Don't print the name of the event when ownership is given away. https://bugzilla.gnome.org/show_bug.cgi?id=727484
This commit is contained in:
parent
df7bfb6a10
commit
cb554772e5
1 changed files with 3 additions and 3 deletions
|
@ -4790,15 +4790,15 @@ gst_pad_push_event_unchecked (GstPad * pad, GstEvent * event,
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
GST_LOG_OBJECT (pad, "sending event %p (%s) to peerpad %" GST_PTR_FORMAT,
|
GST_LOG_OBJECT (pad, "sending event %p (%s) to peerpad %" GST_PTR_FORMAT,
|
||||||
event, GST_EVENT_TYPE_NAME (event), peerpad);
|
event, gst_event_type_get_name (event_type), peerpad);
|
||||||
|
|
||||||
ret = gst_pad_send_event_unchecked (peerpad, event, type);
|
ret = gst_pad_send_event_unchecked (peerpad, event, type);
|
||||||
|
|
||||||
/* 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 (%s) to peerpad %" GST_PTR_FORMAT ", ret %s", event,
|
"sent event %p to (%s) peerpad %" GST_PTR_FORMAT ", ret %s", event,
|
||||||
GST_EVENT_TYPE_NAME (event), peerpad, gst_flow_get_name (ret));
|
gst_event_type_get_name (event_type), peerpad, gst_flow_get_name (ret));
|
||||||
|
|
||||||
gst_object_unref (peerpad);
|
gst_object_unref (peerpad);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue