Commit Graph

443 Commits

Author SHA1 Message Date
diego 8bde6dfbfd Add missing #include, fixes the warning:
elfdll.c:106: warning: implicit declaration of function 'TRACE'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25801 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 15:04:33 +00:00
reimar 47cbaf4c81 Remove another 2 useless casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25710 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 10:19:06 +00:00
reimar a20fa53d69 Get rid of another useless cast
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25709 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 10:09:39 +00:00
reimar e356da9b2f Remove a cast useless since r24425.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25708 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 10:01:27 +00:00
reimar 56aea56fc0 Move variable declaration into block where it is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25707 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 09:39:28 +00:00
reimar 2d3538e538 Remove result from warning string, it has no useful meaning here.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25706 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 09:38:39 +00:00
reimar a66f248c25 Remove a useless cast
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25705 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-13 09:37:36 +00:00
diego b93a11f93e Remove all test programs with 'make clean'.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25622 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 12:50:13 +00:00
diego 7372e69048 /usr/lib/win32 --> /usr/local/lib/codecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25621 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 12:22:56 +00:00
diego 92a4156d2b Remove compilation command comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25620 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 12:20:41 +00:00
diego 5bde13b86b Comment out non-existing mp_msg_set_level function to fix linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25618 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:56:03 +00:00
diego e69da423b6 Fix compilation by replacing a broken macro with in-place code.
qtx/qtxload.c:16:1: error: pasting "*" and "ComponentDispatch" does not give a valid preprocessing token


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25617 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:53:51 +00:00
diego 91f3b6460e Fix compilation due to conflicting type declaration:
qtx/list.c:22: error: conflicting types for 'OSErr'
qtx/qtxsdk/components.h:15: error: previous declaration of 'OSErr' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25616 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:45:47 +00:00
diego 7229f29d19 Add missing #include so that the header works standalone.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25615 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:43:14 +00:00
diego 444ec084df Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
compilation shell script.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25614 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:40:49 +00:00
diego 744aba2ae0 Get the dshow test program closer to linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25613 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:27:07 +00:00
diego c6fadb653d Fix warnings:
dshow/test.c:52: warning: implicit declaration of function 'strcpy'
dshow/test.c:52: warning: incompatible implicit declaration of built-in function 'strcpy'
dshow/test.c:61: warning: implicit declaration of function 'memset'
dshow/test.c:61: warning: incompatible implicit declaration of built-in function 'memset'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25612 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:20:34 +00:00
diego bf1ff2620f Add missing #includes to fix compilation:
dshow/test.c:11: error: 'BITMAPINFOHEADER' undeclared (first use in this function)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25611 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 11:19:48 +00:00
diego 0c6f106937 Fix typo, LIBNAME should be LIBNAME_COMMON.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25606 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-05 14:32:46 +00:00
diego 2b6af2000b Add multiple inclusion guards to all header files that lack them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25581 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 21:35:58 +00:00
diego 6b64884159 Consistently use just the name of the #ifdef directive in preprocessor comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25576 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 20:07:21 +00:00
diego 60fa2be5d7 consistency cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25575 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 20:05:36 +00:00
diego fba0b66ff9 Add explanatory comments to the #endif part of multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 16:15:50 +00:00
diego 2f7e5f028e Stop MPlayer from complaining about bogus AviSynth DLL load failures.
This was causing major confusion and resulting usability problems.
patch by Jan Knutar, jknutar nic fi


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25446 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 09:13:19 +00:00
reimar 0f50b44313 Replace hardcoded 0 by equivalent O_RDONLY
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24830 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-21 13:45:04 +00:00
compn dac13715ce add comment to endif
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24806 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-18 12:43:57 +00:00
compn c040ef5660 Add Coinitialize function to vfw encoder and win32 loader.
Fixes crash when trying to load vp7vfw.dll in vfw2menc.
Patch by Gianluigi Tiesi mplayer___netfarm.it
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2007-September/054136.html



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24798 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-17 05:14:21 +00:00
diego 60eaa3a7da Detect support of and add necessary CFLAGS to avoid crashes when loading
Win32 DLLs on Mac OS X / Intel.
based on patch by Ulion, ulion2002 gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24683 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-01 22:46:33 +00:00
voroshil 4357e135eb Move AM_MEDIA_TYPE structure definition to mediatype.h.
Make inclusion of com.h and wine/*.h conditional,
this will allow reusing of mediatype.c code under MinGW
without requirement to include all remaining wine/* stuff.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24448 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 16:13:37 +00:00
diego 52a20f8579 Remove leading underscores from multiple inclusion guards,
leading underscores are reserved in the C standard.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24442 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 08:50:21 +00:00
diego a94ff0adc4 Fix include path.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24441 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 00:17:52 +00:00
diego a485b5d748 Remove redundant #ifndef, __WINE_MMSYSTEM_H is never defined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24440 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 23:42:30 +00:00
diego d81a386693 cosmetics: Use uppercase for multiple inclusion guards and comment #endifs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24439 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 23:16:39 +00:00
diego c374720467 Remove useless #ifndef, __WINE_WINGDI_H is never defined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24438 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 23:14:55 +00:00
diego 254f0f1028 Remove redundant multiple inclusion guard.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24437 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 23:13:53 +00:00
diego 802b125c30 Consistently use path as multiple inclusion guard.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24433 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 15:30:22 +00:00
cehoyos e0b3031d97 Fix indentation after r24367.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24428 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 23:14:17 +00:00
voroshil 78c2694b48 Revert r24424.
Fix is wrong, because 'packed' attribute can be placed before
structure definition only when all members have this attribute.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24426 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 18:55:52 +00:00
voroshil 903cbd2fc7 Fix for:
dshow/DS_Filter.c: In function 'DS_Filter_CopySample':
dshow/DS_Filter.c:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
dshow/DS_Filter.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules
dshow/DS_Filter.c:191: warning: dereferencing type-punned pointer will break strict-aliasing rules
dshow/DS_Filter.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
dshow/DS_Filter.c:220: warning: dereferencing type-punned pointer will break strict-aliasing rules
dshow/DS_Filter.c:245: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c: In function 'DMO_FilterCreate':
dmo/dmo.c:73: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:79: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:86: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules
dmo/dmo.c:93: warning: dereferencing type-punned pointer will break strict-aliasing rules


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24425 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 18:27:45 +00:00
voroshil 169a837b18 Fix for a lot of
"'packed' attribute ignored for field of type 'BYTE'" warnings.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24424 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 18:07:25 +00:00
diego 36a28b6f50 cosmetics: Add comments to some #endif preprocessor directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24422 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 16:17:13 +00:00
diego 9489e9dd4b warning fixes:
win32.c:2102: warning: redundant redeclaration of 'LoadResource'
wine/winbase.h:1678: warning: previous declaration of 'LoadResource' was here
win32.c:2247: warning: redundant redeclaration of 'MODULE32_LookupHMODULE'
wine/module.h:143: warning: previous declaration of 'MODULE32_LookupHMODULE' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24421 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 15:38:11 +00:00
diego 183b4d6fea warning fix:
win32.c: In function 'expGetSystemInfo':
win32.c:935: warning: unused variable 'regs'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24420 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 15:33:40 +00:00
diego bedf84a5e0 warning fix:
win32.c:960: warning: redundant redeclaration of 'gCpuCaps'
../cpudetect.h:53: warning: previous declaration of 'gCpuCaps' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24419 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 15:32:11 +00:00
diego bbe0b8ce6d warning fixes:
pe_image.c:70: warning: redundant redeclaration of 'LookupExternal'
win32.h:41: warning: previous declaration of 'LookupExternal' was here
pe_image.c:71: warning: redundant redeclaration of 'LookupExternalByName'
win32.h:42: warning: previous declaration of 'LookupExternalByName' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24418 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 15:27:23 +00:00
voroshil abb5ffc65d Fix for:
dshow/mediatype.c:37: warning: suggest explicit braces to avoid ambiguous 'else'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24417 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 14:43:19 +00:00
voroshil a08444432e Fix for:
dshow/mediatype.c:47: warning: format '%02d' expects type 'int', but argument 5 has type 'long unsigned int'
dshow/mediatype.c:74: warning: format '%d' expects type 'int', but argument 4 has type 'DWORD'
dshow/mediatype.c:77: warning: format '%d' expects type 'int', but argument 4 has type 'DWORD'
dshow/mediatype.c:84: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
dshow/mediatype.c:85: warning: format '%d' expects type 'int', but argument 4 has type 'long int'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24416 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 14:29:44 +00:00
voroshil 8228670a2e Proper fix for:
dshow/mediatype.c:52: warning: implicit declaration of function 'printf'
dshow/mediatype.c:52: warning: incompatible implicit declaration of built-in function 'printf'
    

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24415 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 13:50:03 +00:00
diego 4b3a9ce83e cosmetics: Fix silly typo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24414 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 13:30:22 +00:00
diego 0c4d465c19 warning fix:
dmo/dmo.c:118: warning: unused variable 'vi'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24413 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 13:29:14 +00:00