From cf9f0007c7ac888197d591ff219b1f335d4fc09a Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 11 Mar 2014 10:41:25 +0200 Subject: libw32dll: fix const issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Casting const away is usually bad idea. It does not fix the cause (incorrect types). Also, casting const away issues warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type --- src/libw32dll/dmo/DMO_VideoDecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libw32dll/dmo/DMO_VideoDecoder.c') diff --git a/src/libw32dll/dmo/DMO_VideoDecoder.c b/src/libw32dll/dmo/DMO_VideoDecoder.c index 64b0ef78c..4b95bcfa7 100644 --- a/src/libw32dll/dmo/DMO_VideoDecoder.c +++ b/src/libw32dll/dmo/DMO_VideoDecoder.c @@ -90,7 +90,7 @@ static ct check[] = { {0}, }; -DMO_VideoDecoder * DMO_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto) +DMO_VideoDecoder * DMO_VideoDecoder_Open(const char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto) { DMO_VideoDecoder *this; HRESULT result; -- cgit v1.2.3