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/DirectShow/DS_AudioDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libw32dll/DirectShow/DS_AudioDecoder.h') diff --git a/src/libw32dll/DirectShow/DS_AudioDecoder.h b/src/libw32dll/DirectShow/DS_AudioDecoder.h index 9628f65d2..c88da50f8 100644 --- a/src/libw32dll/DirectShow/DS_AudioDecoder.h +++ b/src/libw32dll/DirectShow/DS_AudioDecoder.h @@ -4,7 +4,7 @@ typedef struct _DS_AudioDecoder DS_AudioDecoder; //DS_AudioDecoder * DS_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf); -DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf); +DS_AudioDecoder * DS_AudioDecoder_Open(const char* dllname, GUID* guid, WAVEFORMATEX* wf); void DS_AudioDecoder_Destroy(DS_AudioDecoder *this); -- cgit v1.2.3