gdb: Fix issue with undeclared variable

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5986>
This commit is contained in:
Thibault Saunier 2023-08-31 18:55:14 -04:00 committed by GStreamer Marge Bot
parent e98c515c58
commit f09da2db0e

View file

@ -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)