From db2146d0eac75cb42913ca0d886156e7066aab6e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 17 Nov 2022 15:41:35 +0100 Subject: [PATCH] decodebin2: Minor debug fix for decodepad decodedad might have their name changed when exposing, causing a race when trying to get their name without taking a lock. Just use GST_PTR_POINTER in debug statements instead Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c index 532824f4f1..7dcad5411a 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c @@ -5015,7 +5015,7 @@ source_pad_event_probe (GstPad * pad, GstPadProbeInfo * info, GstDecodePad *dpad = user_data; gboolean res = TRUE; - GST_LOG_OBJECT (pad, "%s dpad:%p", GST_EVENT_TYPE_NAME (event), dpad); + GST_LOG_OBJECT (pad, "event %s", GST_EVENT_TYPE_NAME (event)); if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { GST_DEBUG_OBJECT (pad, "we received EOS"); @@ -5162,8 +5162,8 @@ gst_decode_pad_query (GstPad * pad, GstObject * parent, GstQuery * query) ret = FALSE; GST_DEBUG_OBJECT (dpad->dbin, - "calling autoplug-query for %s (element %s): %" GST_PTR_FORMAT, - GST_PAD_NAME (dpad), GST_ELEMENT_NAME (delem->element), query); + "calling autoplug-query for %" GST_PTR_FORMAT " (element %s): %" + GST_PTR_FORMAT, dpad, GST_ELEMENT_NAME (delem->element), query); g_signal_emit (G_OBJECT (dpad->dbin), gst_decode_bin_signals[SIGNAL_AUTOPLUG_QUERY], 0, dpad, delem->element, query, &ret);