mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
gst: libcamerasrc: Add a debug category
This will allow selecting libcamerasrc traces with the following environment: GST_DEBUG=libcamerasrc:7 Or all libcamera GStreamer element traces using GST_DEBUG="libcamera*:7" Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
2c93810ec1
commit
cfa61225a4
1 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,9 @@
|
|||
#include "gstlibcamerapad.h"
|
||||
#include "gstlibcamera-utils.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC(source_debug);
|
||||
#define GST_CAT_DEFAULT source_debug
|
||||
|
||||
struct _GstLibcameraSrc {
|
||||
GstElement parent;
|
||||
GstPad *srcpad;
|
||||
|
@ -22,7 +25,9 @@ enum {
|
|||
PROP_CAMERA_NAME
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE(GstLibcameraSrc, gst_libcamera_src, GST_TYPE_ELEMENT);
|
||||
G_DEFINE_TYPE_WITH_CODE(GstLibcameraSrc, gst_libcamera_src, GST_TYPE_ELEMENT,
|
||||
GST_DEBUG_CATEGORY_INIT(source_debug, "libcamerasrc", 0,
|
||||
"libcamera Source"));
|
||||
|
||||
#define TEMPLATE_CAPS GST_STATIC_CAPS("video/x-raw; image/jpeg")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue