mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
gdb: Fix issue with undeclared variable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5986>
This commit is contained in:
parent
e98c515c58
commit
f09da2db0e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue