Commit 3835712f authored by Carlos Rafael Giani's avatar Carlos Rafael Giani Committed by Rob Clark

add "kmscube" GStreamer debug category

Without this, the various GST_* log macros won't output anything.
To enable, add "kmscube:<loglevel>" to the GST_DEBUG environment variable.
Example:   GST_DEBUG=kmscube:5
Signed-off-by: 's avatarCarlos Rafael Giani <dv@pseudoterminal.org>
parent cd0941bd
......@@ -39,6 +39,9 @@
#include <gst/app/gstappsink.h>
#include <gst/video/gstvideometa.h>
GST_DEBUG_CATEGORY_EXTERN(kmscube_debug);
#define GST_CAT_DEFAULT kmscube_debug
struct decoder {
GMainLoop *loop;
GstElement *pipeline;
......
......@@ -33,7 +33,8 @@
#include "drm-common.h"
#ifdef HAVE_GST
# include <gst/gst.h>
#include <gst/gst.h>
GST_DEBUG_CATEGORY(kmscube_debug);
#endif
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
......@@ -81,6 +82,7 @@ int main(int argc, char *argv[])
#ifdef HAVE_GST
gst_init(&argc, &argv);
GST_DEBUG_CATEGORY_INIT(kmscube_debug, "kmscube", 0, "kmscube video pipeline");
#endif
while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment