gdb: add 'gst-pipeline-tree' command
authorMichael Olbrich <m.olbrich@pengutronix.de>
Sat, 11 May 2019 19:02:37 +0000 (21:02 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 May 2019 10:37:50 +0000 (10:37 +0000)
commit2bd2ed289a115f448fd5a345acd61fcea27794bc
treedbc25ce23394e08d60572c9020f7c53917b1f291
parentebce5a7ee96dfbf62accaf0e50beb41efde76d28
gdb: add 'gst-pipeline-tree' command

It shows a simple tree of all elements in pipeline.
As with gst-dot, the toplevel bin is found from any element of the
pipeline:

(gdb) gst-pipeline-tree bsink
playbin
  inputselector1
  inputselector0
  uridecodebin0
    queue2-0
    decodebin0
      avdec_aac0
      aacparse0
      vaapidecodebin0
        vaapipostproc0
        capsfilter1
        vaapi-queue
        vaapidecode0
      capsfilter0
      h264parse0
      multiqueue0
      matroskademux0
      typefind
    typefindelement0
    source
  playsink
    abin
      aconv
        resample
        conv
        identity
      aqueue
      pulsesink0
    vbin
      vconv
        scale
        conv
        identity
      vqueue
      vaapisink0
    vdbin
      deinterlace
      vdconv
    audiotee
    streamsynchronizer0
libs/gst/helpers/gst_gdb.py