summaryrefslogtreecommitdiff
path: root/kmscube.c
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2017-04-26 20:56:14 +0200
committerRob Clark <robdclark@gmail.com>2017-04-29 10:23:41 -0400
commit3835712fa5268625ba702472685ebab287b1403b (patch)
tree5f484677ca9c434f82eb2b409f30121919603ce4 /kmscube.c
parentcd0941bd41c7f9285a7aba2a5ace1977bcb359d8 (diff)
downloadkmscube-3835712fa5268625ba702472685ebab287b1403b.tar.gz
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: Carlos Rafael Giani <dv@pseudoterminal.org>
Diffstat (limited to 'kmscube.c')
-rw-r--r--kmscube.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kmscube.c b/kmscube.c
index 6dcfd2f..3a2c4dd 100644
--- a/kmscube.c
+++ b/kmscube.c
@@ -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) {