dxva2-Video_Decoder: Fix compile warning when compiling without libva support.

This commit is contained in:
Sebastian Lackner
2016-12-26 16:37:54 +01:00
parent 8db21bfce6
commit b372d532ca
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
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