gdb: gst-print add more pad and element information
authorMichael Olbrich <m.olbrich@pengutronix.de>
Sat, 11 May 2019 18:53:05 +0000 (20:53 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 May 2019 10:37:50 +0000 (10:37 +0000)
commit36c2fc3bc395f2932b104af93d3bb913c4b5a5f1
treed93c91e2e09ee1d1d55772a26d4b4f30729dc1d1
parent0d7db77bae50ad5fbefcb51ce1033842b4ed66e0
gdb: gst-print add more pad and element information

For elements, this adds all child elements, the state and base/start time:

(gdb) gst-print pipeline
0x5555556ebd20 "pipeline0"
GstPipeline(pipeline0) {
    children:
      fakesink0
      queue0
      videotestsrc0
    state: PLAYING
    base_time: +2:54:36.892581150
    start_time: 0:00:00.000000000
}

For pads, this adds the peer pads and the current task state and the
offset (if not zero):

(gdb) gst-print pad
SrcGhostPad(src, push) {
  events:
    [...]
  peer: vaapisink0:sink
  inner peer: scale:src
}

(gdb) gst-print pad
SrcPad(src, push) {
  events:
    [...]
  peer: queue0:sink
  task: STARTED
  offset: 30000000 [+0:00:00.030000000]
}
libs/gst/helpers/gst_gdb.py