From f09da2db0ebab5f7d16c48df8ef778b02221d88d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 31 Aug 2023 18:55:14 -0400 Subject: [PATCH] gdb: Fix issue with undeclared variable Part-of: --- subprojects/gstreamer/libs/gst/helpers/gst_gdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py b/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py index 9c0e35a10f..67a4727ddc 100644 --- a/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py +++ b/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py @@ -280,7 +280,7 @@ def gst_object_pipeline(obj): pass if not g_inherits_type(obj, "GstElement"): - raise Exception("Toplevel parent is not a GstElement") + raise Exception("Toplevel %s parent is not a GstElement" % obj) return obj.cast(gdb.lookup_type("GstElement").pointer()) @@ -391,6 +391,7 @@ class GdbGstCaps: if len(items) != 1: _gdb_write(indent, prefix) prefix = "" + s = "" for (features, structure) in items: s = "%s %s" % (prefix, structure.name()) tmp = str(features)