From aed4d31e670483e2f0c3eea7c30a552bba8f1bbd Mon Sep 17 00:00:00 2001 From: Hou Qi Date: Thu, 20 Apr 2023 17:08:31 +0800 Subject: [PATCH] decodebin3: fix segment fault when print decoder log Segment fault happens when cannot find decoder but try to print decoder name. Need to check the decoder. Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c index f96d44cbf5..0264ae9306 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -2811,7 +2811,7 @@ reconfigure_output_stream (DecodebinOutputStream * output, if (next_factory) { output->decoder = gst_element_factory_create ((GstElementFactory *) next_factory->data, NULL); - GST_DEBUG ("Created decoder '%s'", GST_ELEMENT_NAME (output->decoder)); + GST_DEBUG ("Created decoder %" GST_PTR_FORMAT, output->decoder); } else { GST_DEBUG ("Could not find an element for caps %" GST_PTR_FORMAT, new_caps);