Debug logs are an extremely helpful tool in the
GStreamer developer's toolbox.
Most will say you can't live without them.
Something I've always missed when reading them is a convenient way to jump back and forth between the logs and the source code. So I went ahead and wrote an
emacs mini mode that does exactly this:
emacs-gstreamer
an emacs mini module to navigate GStreamer debug logs.
When hitting Enter or M-. in a log file it will open the source code to the line that generated that debug message. If you have multiple emacs windows open, it will open the GStreamer source code file in the second to last active so you can continue reading the log in the active window. If you only have one window open it will open the source code file in the current one. After that you can use your favorite window and buffer handling to surf the files. Read, learn, write, and develop.
Click here to watch a screencast
To get it running you need to have loaded a tags table with the source code. Read
this other article to learn how. I run it as part of my
gst-uninstalled script.
Then just run
M-x gst-debug in the debug log file's buffer.
Let me know if it helps your development workflow!