Commit Graph

51 Commits

Author SHA1 Message Date
wm4 24be34f1e9 cleanup: Silence compilation warnings on MinGW-w64
Some of the code, especially the dshow and windows codec loader parts,
are extremely hacky and likely full of bugs. The goal is merely getting
rid of warnings that could obscure more important warnings and actual
bugs, instead of fixing actual problems. This reduces the number of
warnings from over 500 to almost the same as when compiling on Linux.

Note that many problems stem from using the ancient wine-derived
windows headers. There are some differences to the "proper" windows
header. Changing the code to compile with the proper headers would be
too much trouble, and it still has to work on Unix.

Some of the changes might actually break compilation on legacy MinGW,
but we don't support that anymore. Always use MinGW-w64, even when
compiling to 32 bit.

Fixes some warnings in the win32 loader code on Linux too.
2012-03-01 00:22:30 +02:00
Uoti Urpala 00323c06e2 Delete things related to old translation system
Remove the help/ subdirectory, configure code to create toplevel
help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
2010-03-10 03:47:14 +02:00
Uoti Urpala c37f09693d Merge svn changes up to r30643 2010-03-10 00:00:06 +02:00
Uoti Urpala b0986b3760 Merge svn changes up to r30463
Note that r30455 is wrong, that commit does not in fact change the
default behavior as claimed in the commit message. It only breaks
"-af-adv force=0", which was already pretty much useless though.
2010-03-09 18:59:15 +02:00
diego 0055441774 Add header for AVI print functions; avoids many forward declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30631 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 00:18:50 +00:00
diego 0c3d44619b libmpcodecs: Remove pointless leftover '#if 1' preprocessor instructions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30608 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-17 21:36:00 +00:00
diego 92e3238508 Mark all ad_info_t/vd_info_t structure declarations as const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30546 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-12 16:29:34 +00:00
diego 23db422c3d Add missing license headers to all files in the libmpcodecs directory.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-30 16:57:40 +00:00
Uoti Urpala d46b86bc7c Merge svn changes up to r30136
Ignore another broken correct-pts change in 30134.
2009-12-30 00:56:10 +02:00
reimar bd06a94738 Remove only use if MP_IMGFLAG_RGB_PALETTE to allow giving the flag a slightly
different meaning.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30115 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-26 11:33:45 +00:00
Uoti Urpala 0eb321bf2c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
Amar Takhar e306174952 Translation system changes part 2: replace macros by strings
Replace all MSGTR_ macros in the source by the corresponding English
string.
2009-07-07 01:38:20 +03:00
Amar Takhar b5972d6f14 Translation system changes part 1: wrap translated strings
Replace mp_msg() calls which have a translated string as the format
argument with mp_tmsg and add _() around all other translated strings.
2009-07-07 01:28:07 +03:00
diego 6e9cbdc104 whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
Uoti Urpala 8c144171bb Merge svn changes up to r28087
Conflicts:
	command.c
	libao2/ao_ivtv.c
	libao2/ao_v4l2.c
	libmpcodecs/dec_video.h
	libvo/aspect.h
	libvo/sub.c
	libvo/sub.h
	libvo/vo_directx.c
	libvo/vo_macosx.m
	libvo/vo_quartz.c
	mp_core.h
	mplayer.c
	mplayer.h
	osdep/getch2.h
	osdep/timer.h
2008-12-04 01:55:52 +02:00
diego 0864f92e7a Get rid of pointless 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 23:01:03 +00:00
Uoti Urpala 31db39d8ec Make video decoder description structs const
This makes the per-decoder struct vd_functions and its ->info
struct constants. Same for the mpcodecs_vd_drivers[] table of
pointers to those structs.
2008-04-25 07:16:32 +03:00
reimar bcc10e0961 Check ICDecompressGetFormatSize to avoid crashes.
Based on patch by Gianluigi Tiesi (mplayer netfarm it).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24829 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-21 13:15:48 +00:00
diego 2322b23431 Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24166 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:10:33 +00:00
diego 6222e5c9de Include loader/ prefix in #include path everywhere.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22595 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-15 08:29:24 +00:00
diego 60f223f766 Move #ifdefs around complete files into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18774 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-21 14:49:09 +00:00
reynaldo b4c74fb28e Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18005 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-31 00:15:47 +00:00
diego a33158d60d Convert printfs in aviprint.c to mp_msg and give the information printing
functions in this file a verbosity_level parameter.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17978 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 17:25:41 +00:00
diego eebf08b978 Convert all if(verbose>X) to mp_msg_test calls.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-24 08:12:03 +00:00
rathann 2601de4120 massive attack: mp_msg printf format fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-12 20:04:36 +00:00
rtognimp 4957073078 Support for new vssh dll, patch by adland
Use new dll only for new files, it can't decode old files (patch by me)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15345 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-04 20:35:21 +00:00
arpi f859d013a8 *HUGE* set of compiler warning fixes, unused variables removal
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-06 23:54:29 +00:00
arpi 39fe4d0cd3 verbose can be negative
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-01 17:46:45 +00:00
arpi e305745f60 bypass palette from bih, when codec cannot give it in o_bih
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7790 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-19 00:57:44 +00:00
arpi 61c5a99851 wine headers cleanup
- WAVEFORMATEX & BITMAPINFOHEADER decl moved to stheader.h
- lots of useless include wine/* removed from mplayer code
- fixed few warnings


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7472 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-22 00:43:14 +00:00
alex d066ee0ea8 fixed to comply with new loader
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7391 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-13 21:55:55 +00:00
arpi ef95064658 1000l - planar YUV support fixed (indeo 3,4,5, i263 etc)
we shouldn't do planes[1]==NULL for formats like planar yuv


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7276 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-04 23:17:53 +00:00
arpi 4d93a9c4e6 NULL->0 (warning fix)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7274 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-04 22:34:17 +00:00
arpi fc0239c85b enabled csp-query support, but only for formats with 'query' flag set
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7263 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-03 22:28:31 +00:00
arpi 55e92bda68 - vfwex redundancy removed
- fixed 10l bug in GetPalette (outflags vs. outfmt)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7261 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-03 21:13:48 +00:00
arpi 919b436014 fixed some problems with colorspace/init order, some cleanup
csp query disabled, has to be fixed in vd core first and make it optional


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7250 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-03 00:18:08 +00:00
alex 917e8b66db correct palette handling and query_format support (now huffyuv, cram and mwv1 is working nice)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7244 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-02 16:27:17 +00:00
alex fac648971a 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7231 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-01 18:07:42 +00:00
alex 055d7ee5a0 merged with dll_init
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7230 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-01 18:00:15 +00:00
arpi 1b667f61ba -afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7181 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-30 21:44:20 +00:00
arpi 37e6450cfe 2*10l to me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7177 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-30 20:59:21 +00:00
arpi 21c2e04371 vfwex separated from vfw, to work with new vfm system and dlopen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7176 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-30 20:47:18 +00:00
arpi 5f287b1411 vd_vfw.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6845 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-30 16:41:33 +00:00
arpi 38e810acba grayscaled palette support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6233 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-30 00:26:23 +00:00
arpi cd59a26dee iive is right - we shouldn't use IP buffering for vfw. it was changed
to test DR support but i forgot to remove that later :(  10l is mine...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6106 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-16 23:24:47 +00:00
arpi f414bd974e export palette for rgb8/bgr8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5770 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-21 16:32:35 +00:00
alex 57c7eef360 added vfw uninit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5452 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-01 13:26:38 +00:00
arpi 1cfe6ec88a fixed colorspace detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5154 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-17 02:13:18 +00:00
arpi ce04a5f401 handle error from mpcodecs_config_vo()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5125 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-16 01:10:31 +00:00
arpi 092aa814f7 common includes moved to private vd_internal.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4987 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-07 20:43:17 +00:00