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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3428>
This commit is contained in:
Edward Hervey 2022-11-17 15:41:35 +01:00 committed by Edward Hervey
parent 845dcf7ec5
commit db2146d0ea

View file

@ -5015,7 +5015,7 @@ source_pad_event_probe (GstPad * pad, GstPadProbeInfo * info,
GstDecodePad *dpad = user_data; GstDecodePad *dpad = user_data;
gboolean res = TRUE; 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) { if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
GST_DEBUG_OBJECT (pad, "we received EOS"); GST_DEBUG_OBJECT (pad, "we received EOS");
@ -5162,8 +5162,8 @@ gst_decode_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
ret = FALSE; ret = FALSE;
GST_DEBUG_OBJECT (dpad->dbin, GST_DEBUG_OBJECT (dpad->dbin,
"calling autoplug-query for %s (element %s): %" GST_PTR_FORMAT, "calling autoplug-query for %" GST_PTR_FORMAT " (element %s): %"
GST_PAD_NAME (dpad), GST_ELEMENT_NAME (delem->element), query); GST_PTR_FORMAT, dpad, GST_ELEMENT_NAME (delem->element), query);
g_signal_emit (G_OBJECT (dpad->dbin), g_signal_emit (G_OBJECT (dpad->dbin),
gst_decode_bin_signals[SIGNAL_AUTOPLUG_QUERY], 0, dpad, delem->element, gst_decode_bin_signals[SIGNAL_AUTOPLUG_QUERY], 0, dpad, delem->element,
query, &ret); query, &ret);