diff options
| author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-03-11 10:41:25 +0200 |
|---|---|---|
| committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-03-11 10:41:25 +0200 |
| commit | cf9f0007c7ac888197d591ff219b1f335d4fc09a (patch) | |
| tree | ceee5d1fdc0aa0a6427411ee8d010e1aa26ec068 /src/libw32dll/DirectShow | |
| parent | 9dc01446b018803415e0fe02b0f060b037e0738a (diff) | |
| download | xine-lib-cf9f0007c7ac888197d591ff219b1f335d4fc09a.tar.gz xine-lib-cf9f0007c7ac888197d591ff219b1f335d4fc09a.tar.bz2 | |
libw32dll: fix const issues
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
Diffstat (limited to 'src/libw32dll/DirectShow')
| -rw-r--r-- | src/libw32dll/DirectShow/DS_AudioDecoder.c | 2 | ||||
| -rw-r--r-- | src/libw32dll/DirectShow/DS_AudioDecoder.h | 2 | ||||
| -rw-r--r-- | src/libw32dll/DirectShow/DS_VideoDecoder.c | 2 | ||||
| -rw-r--r-- | src/libw32dll/DirectShow/DS_VideoDecoder.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libw32dll/DirectShow/DS_AudioDecoder.c b/src/libw32dll/DirectShow/DS_AudioDecoder.c index 84e84747e..c411095e1 100644 --- a/src/libw32dll/DirectShow/DS_AudioDecoder.c +++ b/src/libw32dll/DirectShow/DS_AudioDecoder.c @@ -33,7 +33,7 @@ struct _DS_AudioDecoder typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**); -DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf) +DS_AudioDecoder * DS_AudioDecoder_Open(const char* dllname, GUID* guid, WAVEFORMATEX* wf) //DS_AudioDecoder * DS_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf) { DS_AudioDecoder *this; 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); diff --git a/src/libw32dll/DirectShow/DS_VideoDecoder.c b/src/libw32dll/DirectShow/DS_VideoDecoder.c index f88e480e3..b179b1a34 100644 --- a/src/libw32dll/DirectShow/DS_VideoDecoder.c +++ b/src/libw32dll/DirectShow/DS_VideoDecoder.c @@ -82,7 +82,7 @@ static ct check[] = { }; -DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto) +DS_VideoDecoder * DS_VideoDecoder_Open(const char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto) { DS_VideoDecoder *this; HRESULT result; diff --git a/src/libw32dll/DirectShow/DS_VideoDecoder.h b/src/libw32dll/DirectShow/DS_VideoDecoder.h index 82e76f66a..889728799 100644 --- a/src/libw32dll/DirectShow/DS_VideoDecoder.h +++ b/src/libw32dll/DirectShow/DS_VideoDecoder.h @@ -5,7 +5,7 @@ typedef struct _DS_VideoDecoder DS_VideoDecoder; int DS_VideoDecoder_GetCapabilities(DS_VideoDecoder *this); -DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto); +DS_VideoDecoder * DS_VideoDecoder_Open(const char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto); void DS_VideoDecoder_Destroy(DS_VideoDecoder *this); |
