From 80c897ec6ff9497c0d1f65afc3e78e76f6dacb63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Mon, 26 Dec 2016 16:29:08 +0100
Subject: dxva2: Only declare debug channels when they are actually used.

---
 dlls/dxva2/vaapi-h264.c  | 4 ++--
 dlls/dxva2/vaapi-mpeg2.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/dxva2/vaapi-h264.c b/dlls/dxva2/vaapi-h264.c
index ea3253c..12610ba 100644
--- a/dlls/dxva2/vaapi-h264.c
+++ b/dlls/dxva2/vaapi-h264.c
@@ -31,10 +31,10 @@
 #include "dxva.h"
 #include "dxva2_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(dxva2);
-
 #ifdef HAVE_VAAPI
 
+WINE_DEFAULT_DEBUG_CHANNEL(dxva2);
+
 #define MAX_SLICES 4096
 
 #define SLICE_TYPE_P   0
diff --git a/dlls/dxva2/vaapi-mpeg2.c b/dlls/dxva2/vaapi-mpeg2.c
index 3b4b859..8b079e5 100644
--- a/dlls/dxva2/vaapi-mpeg2.c
+++ b/dlls/dxva2/vaapi-mpeg2.c
@@ -31,10 +31,10 @@
 #include "dxva.h"
 #include "dxva2_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(dxva2);
-
 #ifdef HAVE_VAAPI
 
+WINE_DEFAULT_DEBUG_CHANNEL(dxva2);
+
 #define MAX_SLICES 1024
 
 static inline UINT estimate_maximum_slice_size( UINT width, UINT height )
-- 
2.9.0

