Codebase list kmscube / 3835712
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> Carlos Rafael Giani authored 7 years ago Rob Clark committed 7 years ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 #include <gst/app/gstappsink.h>
3939 #include <gst/video/gstvideometa.h>
4040
41 GST_DEBUG_CATEGORY_EXTERN(kmscube_debug);
42 #define GST_CAT_DEFAULT kmscube_debug
43
4144 struct decoder {
4245 GMainLoop *loop;
4346 GstElement *pipeline;
3232 #include "drm-common.h"
3333
3434 #ifdef HAVE_GST
35 # include <gst/gst.h>
35 #include <gst/gst.h>
36 GST_DEBUG_CATEGORY(kmscube_debug);
3637 #endif
3738
3839 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
8081
8182 #ifdef HAVE_GST
8283 gst_init(&argc, &argv);
84 GST_DEBUG_CATEGORY_INIT(kmscube_debug, "kmscube", 0, "kmscube video pipeline");
8385 #endif
8486
8587 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != -1) {