summaryrefslogtreecommitdiff
path: root/gst-decoder.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 /gst-decoder.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 'gst-decoder.c')
-rw-r--r--gst-decoder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-decoder.c b/gst-decoder.c
index 1140213..22dc068 100644
--- a/gst-decoder.c
+++ b/gst-decoder.c
@@ -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;