mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
dxgiscreencapsrc: Reorganize debug category usage
Use the same debug category in all dxgiscreencap related source code Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1355>
This commit is contained in:
parent
4aa7d3d589
commit
96a5760751
3 changed files with 10 additions and 4 deletions
|
@ -25,6 +25,9 @@
|
||||||
|
|
||||||
#include <d3dcompiler.h>
|
#include <d3dcompiler.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (gst_dxgi_screen_cap_src_debug);
|
||||||
|
#define GST_CAT_DEFAULT gst_dxgi_screen_cap_src_debug
|
||||||
|
|
||||||
#define PTR_RELEASE(p) {if(NULL!=(p)){IUnknown_Release((IUnknown *)(p)); (p) = NULL;}}
|
#define PTR_RELEASE(p) {if(NULL!=(p)){IUnknown_Release((IUnknown *)(p)); (p) = NULL;}}
|
||||||
#define BYTE_PER_PIXEL (4)
|
#define BYTE_PER_PIXEL (4)
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
#include "gstdxgiscreencapsrc.h"
|
#include "gstdxgiscreencapsrc.h"
|
||||||
#include "dxgicapture.h"
|
#include "dxgicapture.h"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (dxgiscreencapsrc_debug);
|
GST_DEBUG_CATEGORY_EXTERN (gst_dxgi_screen_cap_src_debug);
|
||||||
|
#define GST_CAT_DEFAULT gst_dxgi_screen_cap_src_debug
|
||||||
|
|
||||||
struct _GstDXGIScreenCapSrc
|
struct _GstDXGIScreenCapSrc
|
||||||
{
|
{
|
||||||
|
@ -190,9 +191,6 @@ gst_dxgi_screen_cap_src_class_init (GstDXGIScreenCapSrcClass * klass)
|
||||||
gst_element_class_set_static_metadata (e_class,
|
gst_element_class_set_static_metadata (e_class,
|
||||||
"DirectX DXGI screen capture source",
|
"DirectX DXGI screen capture source",
|
||||||
"Source/Video", "Captures screen", "OKADA Jun-ichi <okada@abt.jp>");
|
"Source/Video", "Captures screen", "OKADA Jun-ichi <okada@abt.jp>");
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (dxgiscreencapsrc_debug, "dxgiscreencapsrc", 0,
|
|
||||||
"DirectX DXGI screen capture source");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
#ifdef HAVE_DXGI_CAP
|
#ifdef HAVE_DXGI_CAP
|
||||||
#include <versionhelpers.h>
|
#include <versionhelpers.h>
|
||||||
#include "gstdxgiscreencapsrc.h"
|
#include "gstdxgiscreencapsrc.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY (gst_dxgi_screen_cap_src_debug);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static BOOL CALLBACK
|
static BOOL CALLBACK
|
||||||
|
@ -72,6 +74,9 @@ plugin_init (GstPlugin * plugin)
|
||||||
}
|
}
|
||||||
#ifdef HAVE_DXGI_CAP
|
#ifdef HAVE_DXGI_CAP
|
||||||
if (IsWindows8OrGreater ()) {
|
if (IsWindows8OrGreater ()) {
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_dxgi_screen_cap_src_debug,
|
||||||
|
"dxgiscreencapsrc", 0, "DirectX DXGI screen capture source");
|
||||||
|
|
||||||
/* dxgiscreencapsrc is needs Windows8 or later. */
|
/* dxgiscreencapsrc is needs Windows8 or later. */
|
||||||
if (!gst_element_register (plugin, "dxgiscreencapsrc",
|
if (!gst_element_register (plugin, "dxgiscreencapsrc",
|
||||||
GST_RANK_NONE, GST_TYPE_DXGI_SCREEN_CAP_SRC)) {
|
GST_RANK_NONE, GST_TYPE_DXGI_SCREEN_CAP_SRC)) {
|
||||||
|
|
Loading…
Reference in a new issue