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
38 | 38 |
#include <gst/app/gstappsink.h>
|
39 | 39 |
#include <gst/video/gstvideometa.h>
|
40 | 40 |
|
|
41 |
GST_DEBUG_CATEGORY_EXTERN(kmscube_debug);
|
|
42 |
#define GST_CAT_DEFAULT kmscube_debug
|
|
43 |
|
41 | 44 |
struct decoder {
|
42 | 45 |
GMainLoop *loop;
|
43 | 46 |
GstElement *pipeline;
|
32 | 32 |
#include "drm-common.h"
|
33 | 33 |
|
34 | 34 |
#ifdef HAVE_GST
|
35 | |
# include <gst/gst.h>
|
|
35 |
#include <gst/gst.h>
|
|
36 |
GST_DEBUG_CATEGORY(kmscube_debug);
|
36 | 37 |
#endif
|
37 | 38 |
|
38 | 39 |
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
|
80 | 81 |
|
81 | 82 |
#ifdef HAVE_GST
|
82 | 83 |
gst_init(&argc, &argv);
|
|
84 |
GST_DEBUG_CATEGORY_INIT(kmscube_debug, "kmscube", 0, "kmscube video pipeline");
|
83 | 85 |
#endif
|
84 | 86 |
|
85 | 87 |
while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != -1) {
|