1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00
Commit Graph

29 Commits

Author SHA1 Message Date
cboesch
fe3c4810e1 cleanup: remove NULL checks before free() all over the code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32624 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-14 13:11:20 +02:00
diego
ed8e92afcc Remove #warning preprocessor directives
The #warning preprocessor directive is non-standard and not available with all
compilers. Furthermore, the warnings it causes are noisy and have not led to
getting any of the underlying issues fixed in the space of a decade.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32480 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:18:10 +02:00
diego
b63759b175 Do not cast the results of malloc/calloc/realloc.
These functions return void*, which is compatible with any pointer,
so there is no need for casts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-26 15:01:37 +00: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
diego
2e903f7c75 Remove unnecessary malloc.h #includes and related #ifdeffery.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-02 09:20:48 +00:00
diego
be8c67909b Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:
mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-17 11:16:19 +00:00
diego
5e6231b340 #include osdep/mman.h if sys/mman.h is not available.
patch by KO Myung-Hun, komh chollian net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26143 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-03 09:47:01 +00:00
diego
c03c4b5431 Wrap '#include <sys/mman.h>' in HAVE_SYS_MMAN_H.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26137 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-01 10:31:51 +00:00
reimar
2da6e47a62 Remove $Id$ tags, they make diffs between different versions
harder to read than necessary.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25877 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 12:15:27 +00:00
diego
286467904a warning fix:
ext.c: At top level:
ext.c:316: warning: 'mapping_size' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24404 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 12:54:32 +00:00
diego
f3cb7097cf warning fixes:
ext.c: In function 'HeapAlloc':
ext.c:86: warning: unused variable 'i'
ext.c: In function 'VirtualAlloc':
ext.c:440: warning: unused variable 'fd'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24403 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 12:51:26 +00:00
reimar
2987b207ed Fix and simplify the WideCharToMultiByte and MultiByteToWideChar pseudo-implementations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22431 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-04 09:04:45 +00:00
reimar
7142e36d1f Remove useless fd parameter for mmap_anon
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21264 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-26 13:09:46 +00:00
reimar
7d6341459a Fix loader code: closed .dll file handles when it should not
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21262 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-26 13:02:02 +00:00
nplourde
ac04dcd625 added mmap_anon to osdep lib. Used in loader for now
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21203 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-25 01:22:20 +00:00
diego
57f3213401 CVS --> Subversion in copyright notices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-22 13:34:00 +00:00
diego
f5e88339a5 Mark modified imported files as such to comply with GPL §2a.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15167 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-15 20:17:14 +00:00
atmos4
a2f47e9648 gcc-4.0.0-20041024 compile-fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13828 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-31 15:40:47 +00:00
rtognimp
d73d711330 100l
sys_errlist[] is deprecated and breaks compilation on some systems,
replaced it with strerror()
also commented out the printf


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13307 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-10 22:22:02 +00:00
rtognimp
9e9aec9bf9 Fixes for VirtualAlloc function:
* mplayer received a SIGSEGV under Linux after
	Opening video decoder: [dmo] DMO video codecs
	VirtualAlloc(0x00400000, 859648, 0x00003000, 0x00000040)
      because that region was already under use and mmap() with
      MAP_FIXED has problems under Linux (see code).
      VirtualAlloc() fixed in "loader/ext.c".

    * VirtualAlloc() made to conform with win32 documented behavior
      regarding the alignment of the address and size arguments.

    * VirtualAlloc() detection of overlap with previous regions fixed.

Patch by A. Guru ( a.guru at sympatico dot ca )


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13304 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-10 16:39:31 +00:00
arpi
c7eafc3610 avifile sync - 95% cosmetics 5% bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7387 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-13 19:43:17 +00:00
arpi
189b1be24d /dev/zero bad permissions error message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3776 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-26 22:33:15 +00:00
arpi
b4caa85013 avifile merge. kabi: indent changes really suxxxx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3466 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-11 22:58:14 +00:00
arpi
7428fbd444 avifile sync again... :(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3135 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-26 01:17:24 +00:00
arpi
74baf8a5bd partially synced with avifile... (TODO: migrate to new registry.c and driver.c)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2652 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-03 19:40:38 +00:00
arpi
4f3776f018 sync with avifile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2070 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-10-04 02:21:47 +00:00
jkeil
a26b39974f Add prototypes to wine/loader stuff, so that we can catch __stdcall function
attribute mismatch between caller/caller.  wine/loader is less sensitive to
optimization now.  (now that avifile-0.6 has the same patch installed, we're
a bit closer to their CVS tree)

Speed up win32 "QueryPerformanceFrequency" emulation on solaris.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1308 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-07-12 15:27:48 +00:00
arpi_esp
d71e31d0f7 DLL loader updated from avifile-0.60beta4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@129 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-03-18 01:01:03 +00:00
arpi_esp
d34041569e Initial revision
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-02-24 20:28:24 +00:00