mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
directshow: Fix for uninitialized debug category warning
A method in the code is used in another place (device provider) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2519>
This commit is contained in:
parent
be948816d3
commit
7acfd0cdd1
2 changed files with 4 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <gst/video/video.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (dshowvideosrc_debug);
|
||||
GST_DEBUG_CATEGORY_EXTERN (dshowvideosrc_debug);
|
||||
#define GST_CAT_DEFAULT dshowvideosrc_debug
|
||||
|
||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
|
@ -156,10 +156,6 @@ gst_dshowvideosrc_class_init (GstDshowVideoSrcClass * klass)
|
|||
"DirectShow video capture source", "Source/Video",
|
||||
"Receive data from a directshow video capture graph",
|
||||
"Sebastien Moutte <sebastien@moutte.net>");
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (dshowvideosrc_debug, "dshowvideosrc", 0,
|
||||
"Directshow video source");
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
GST_DEBUG_CATEGORY (dshowdec_debug);
|
||||
GST_DEBUG_CATEGORY (dshowsrcwrapper_debug);
|
||||
GST_DEBUG_CATEGORY (dshowvideosrc_debug);
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
|
@ -39,6 +40,8 @@ plugin_init (GstPlugin * plugin)
|
|||
GST_DEBUG_CATEGORY_INIT (dshowdec_debug, "dshowdec", 0, "DirectShow decoder");
|
||||
GST_DEBUG_CATEGORY_INIT (dshowsrcwrapper_debug, "dshowsrcwrapper", 0,
|
||||
"DirectShow source wrapper");
|
||||
GST_DEBUG_CATEGORY_INIT (dshowvideosrc_debug, "dshowvideosrc", 0,
|
||||
"Directshow video source");
|
||||
|
||||
dshow_adec_register (plugin);
|
||||
dshow_vdec_register (plugin);
|
||||
|
|
Loading…
Reference in a new issue