mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
gdb: Fix the way we wrap segments
Without that we end up with a reference to a GBoxed instead of the actual segment making the rest of the code fail Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5986>
This commit is contained in:
parent
f09da2db0e
commit
9afab6107f
1 changed files with 3 additions and 2 deletions
|
@ -525,12 +525,13 @@ class GdbGstStructure:
|
|||
else:
|
||||
_gdb_write(indent, "%s:" % (self.name()))
|
||||
for (key, value) in self.values():
|
||||
_gdb_write(indent + 1, "%s: %s" % (key, str(value)))
|
||||
_gdb_write(indent+1, "%s: %s" % (key, str(value)))
|
||||
|
||||
|
||||
class GdbGstSegment:
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
t = gdb.lookup_type("GstSegment").pointer().pointer()
|
||||
self.val = val.cast(t).dereference()
|
||||
self.fmt = str(self.val["format"]).split("_")[-1].lower()
|
||||
|
||||
def format_value(self, n):
|
||||
|
|
Loading…
Reference in a new issue