summaryrefslogtreecommitdiffstats
path: root/loader/ldt_keeper.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove win32/qt/xanim/real binary codecs loadingwm42012-08-161-275/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the win32 loader - the win32 emulation layer, as well as the code for using DirectShow/DMO/VFW codecs. Remove loading of xanim, QuickTime, and RealMedia codecs. The win32 emulation layer is based on a very old version of wine. Apparently, wine code was copied and hacked until it was somehow able to load a limited collection of binary codecs. It poked around in the code segment of some known binary codecs to disable unsupported win32 API calls to make them work. Example from module.c: for (i=0;i<5;i++) RVA(0x19e842)[i]=0x90; // make_new_region ? for (i=0;i<28;i++) RVA(0x19e86d)[i]=0x90; // call__call_CreateCompatibleDC ? for (i=0;i<5;i++) RVA(0x19e898)[i]=0x90; // jmp_to_call_loadbitmap ? for (i=0;i<9;i++) RVA(0x19e8ac)[i]=0x90; // call__calls_OLE_shit ? for (i=0;i<106;i++) RVA(0x261b10)[i]=0x90; // disable threads Just to show how utterly insane this code is. You wouldn't want even your worst enemy to have to maintain this. In fact, it seems nobody made major changes to this code ever since it was committed. Most formats can be decoded by libavcodecs these days, and the loader couldn't be used on 64 bit platforms anyway. The same is (probably) true for the other binary codecs. General note about how support for win32 codecs could be added back: It's not possible to replace the win32 loader code by using wine as library, because modern wine can not be linked with native Linux programs for certain reasons. It would be possible to to move DirectShow video decoding into a separate process linked with wine, like the CoreAVC-for-Linux patches do. There is also the mplayer-ww fork, which uses the dshownative library to use DirectShow codecs on Windows.
* build: remove OS/2 supportUoti Urpala2012-04-061-3/+0
|
* cleanup: remove NULL checks before free() all over the codecboesch2010-11-141-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32624 b3059339-0415-0410-9bf9-f77b7e298cf2
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* Merge svn changes up to r30748Uoti Urpala2010-03-101-1/+1
|\
| * Do not cast the results of malloc/calloc/realloc.diego2010-02-261-1/+1
| | | | | | | | | | | | | | | | 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
* | Merge svn changes up to r30550Uoti Urpala2010-03-091-16/+3
|\|
| * Add win32 loader support for OS/2komh2010-02-121-0/+3
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30541 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove extern "C" declarations from loader code.diego2010-02-111-16/+0
| | | | | | | | | | | | | | Our loader code is not a general-purpose library and not used from C++. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30538 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30529Uoti Urpala2010-03-091-12/+4
|\|
| * Merge some preprocessor conditionals where appropriate.diego2010-02-081-12/+4
| | | | | | | | | | | | | | This saves a few lines and simplifies the code slightly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30525 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Restore collapsed whitespace in output messagesUoti Urpala2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | For some reason commit e306174952d42e1cd6cc5efc50ae6bb0410501bc, which replaced translation macro names with the corresponding English strings, also collapsed multiple consecutive space characters into one. Change most of these back. In a couple of cases the amount of whitespace is important for alignment, and for the rest it at least keeps the strings closer to the existing translations.
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-1/+1
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-071-1/+1
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-1/+1
|/ | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.diego2008-10-161-3/+3
| | | | | | | | We were using an inconsistent mix of the three variants and 'volatile' should be the most correct and portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
* #include osdep/mman.h if sys/mman.h is not available.diego2008-03-031-0/+2
| | | | | | | patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26143 b3059339-0415-0410-9bf9-f77b7e298cf2
* Wrap '#include <sys/mman.h>' in HAVE_SYS_MMAN_H.diego2008-03-011-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26137 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing #includes for Mac OS X, fixes the warningdiego2008-02-241-0/+5
| | | | | | | | ldt_keeper.c:243: warning: implicit declaration of function i386_set_ldt patch by Elias Pipping, elias pipping org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26086 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove $Id$ tags, they make diffs between different versionsreimar2008-01-271-1/+0
| | | | | | | harder to read than necessary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25877 b3059339-0415-0410-9bf9-f77b7e298cf2
* check that definition of prototype of sysi86(int, void*) doesn't conflict; ↵nicodvb2007-03-181-2/+2
| | | | | | fixed compilation in opensolaris git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22733 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix compilation for win32 dll codec support for intel osxnplourde2006-11-271-5/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21306 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless fd parameter for mmap_anonreimar2006-11-261-5/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21264 b3059339-0415-0410-9bf9-f77b7e298cf2
* open /dev/zero left over from mmap_anon patchreimar2006-11-261-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21260 b3059339-0415-0410-9bf9-f77b7e298cf2
* added mmap_anon to osdep lib. Used in loader for nownplourde2006-11-251-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21203 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 2reynaldo2006-07-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18883 b3059339-0415-0410-9bf9-f77b7e298cf2
* gets ride of a few more sizeof(char)sreynaldo2006-06-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18862 b3059339-0415-0410-9bf9-f77b7e298cf2
* CVS --> Subversion in copyright noticesdiego2006-06-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a check for sysi86() on Solaris systems, solving a build failure on Solarisdiego2006-04-301-0/+2
| | | | | | | | 10 x86 to avoid using a local declaration that is no longer compatible. patch by "Derek E. Lewis", dlewis $$@$$ solnetworks %%.%% net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18363 b3059339-0415-0410-9bf9-f77b7e298cf2
* one more hint for openbsdalex2006-02-121-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17606 b3059339-0415-0410-9bf9-f77b7e298cf2
* DragonFly BSD supportdiego2005-05-251-4/+4
| | | | | | | patch by Joerg Sonnenberger <joerg - at - britannica - dot - bec - dot - de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark modified imported files as such to comply with GPL §2a.diego2005-04-151-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15167 b3059339-0415-0410-9bf9-f77b7e298cf2
* initialize modify_ldt struct to 0.reimar2005-01-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14538 b3059339-0415-0410-9bf9-f77b7e298cf2
* add missing registers in clobber list, fixes bug #169reimar2004-12-211-0/+1
| | | | | | | Patch by basic basic (at) mozdev [dot] org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14213 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lfaust32004-09-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13362 b3059339-0415-0410-9bf9-f77b7e298cf2
* declare modify_ldt with syscall3 macro for older glibcs patch by Mikulas ↵faust32004-09-161-0/+5
| | | | | | Patocka <mikulas at artax.karlin.mff.cuni.cz> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13352 b3059339-0415-0410-9bf9-f77b7e298cf2
* FreeBSD 5.0 (libkse/libthr) support by Dan Eischen <eischen@vigrid.com>alex2003-09-061-3/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10822 b3059339-0415-0410-9bf9-f77b7e298cf2
* exporting fs_segalex2002-11-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8224 b3059339-0415-0410-9bf9-f77b7e298cf2
* 2.5.47+ supportarpi2002-11-161-0/+5
| | | | | | | patch by Sergey S. Stasyuk <stas@soft-systems.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8214 b3059339-0415-0410-9bf9-f77b7e298cf2
* avifile sync - 95% cosmetics 5% bugarpi2002-09-131-38/+53
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7387 b3059339-0415-0410-9bf9-f77b7e298cf2
* OpenBSD, NetBSD portability patches byarpi2002-04-271-0/+1
| | | | | | | | | Björn Sandell <biorn@dce.chalmers.se> Marcus <core@antbear.org> Bernd Ernesti <mplayer@lists.veego.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5873 b3059339-0415-0410-9bf9-f77b7e298cf2
* commented out debug msgalex2002-04-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5748 b3059339-0415-0410-9bf9-f77b7e298cf2
* /dev/zero bad permissions error messagearpi2001-12-261-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Eugene's fixes to work with QuickTime.qtsarpi2001-11-091-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2780 b3059339-0415-0410-9bf9-f77b7e298cf2
* changes merged back from avifile cvsarpi2001-10-081-19/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2140 b3059339-0415-0410-9bf9-f77b7e298cf2
* (solaris x86) C++ style variable declaration not at the start of a block doesjkeil2001-10-041-0/+2
| | | | | | | not work in mplayer, add a block to declare local variable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2071 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync with avifilearpi2001-10-041-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2070 b3059339-0415-0410-9bf9-f77b7e298cf2
* setup_FS.c -> ldt_keeper.c (avifile sync)arpi2001-10-041-0/+229
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2068 b3059339-0415-0410-9bf9-f77b7e298cf2