#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 BYTE_PER_PIXEL (4)
#include "gstdxgiscreencapsrc.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
{
gst_element_class_set_static_metadata (e_class,
"DirectX DXGI screen capture source",
"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
#ifdef HAVE_DXGI_CAP
#include <versionhelpers.h>
#include "gstdxgiscreencapsrc.h"
+
+GST_DEBUG_CATEGORY (gst_dxgi_screen_cap_src_debug);
#endif
static BOOL CALLBACK
}
#ifdef HAVE_DXGI_CAP
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. */
if (!gst_element_register (plugin, "dxgiscreencapsrc",
GST_RANK_NONE, GST_TYPE_DXGI_SCREEN_CAP_SRC)) {