diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2017-04-26 20:56:14 +0200 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-29 10:23:41 -0400 |
commit | 3835712fa5268625ba702472685ebab287b1403b (patch) | |
tree | 5f484677ca9c434f82eb2b409f30121919603ce4 /kmscube.c | |
parent | cd0941bd41c7f9285a7aba2a5ace1977bcb359d8 (diff) | |
download | kmscube-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |