summaryrefslogtreecommitdiffstats
path: root/loader
Commit message (Collapse)AuthorAgeFilesLines
* Merge svn changes up to r30876Uoti Urpala2010-03-109-40/+431
|\
| * Fix a syntax error in graph.h.sesse2010-03-091-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30874 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add copyright headers.sesse2010-03-092-0/+37
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30873 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Style changes as requested by Diego.sesse2010-03-092-38/+37
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30872 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Commit files by Steinar Gunderson, forgotten in r30866.cehoyos2010-03-092-0/+184
| | | | | | | | | | | | | | Fixes compilation on x86-32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30870 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Implement DirectShow filter graph.sesse2010-03-085-4/+45
| | | | | | | | | | | | | | | | | | | | DirectShow specifies that a filter (codec) can expect JoinFilterGraph to be called, and store a reference to the graph manager. Implement a very bare-bones graph manager (all functions are stubs, and no extra interfaces are implemented) and give it to the codec on init. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30866 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Correct QuickTime dpi output.sesse2010-03-081-2/+2
| | | | | | | | | | | | | | | | The dpi value for QuickTime codecs is stored as Fixed16 (16.16 fixed-point), not int. Correct the output value accordingly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30865 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Implement ResumeThread and SignalObjectAndWait.sesse2010-03-081-0/+31
| | | | | | | | | | | | | | | | | | Relatively simplistic implementations of ResumeThread (stub) and SignalObjectAndWait (bAlertable is ignored). Both are needed for ProRes 4:2:2 support on Linux. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30861 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix QuickTime emulated OSErr type.sesse2010-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The OSErr type on Mac OS X is int16_t, not int32_t (see http://developer.apple.com/mac/library/documentation/QuickTime/Reference/QTRef_DataTypes/Reference/reference.html). The upper 16 bits will typically be something random (they're entirely undefined). Change the type so it's right; a few places tried to compensate for this by masking out the upper bits, but a few places also missed them, which made for unpredictable behavior. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30854 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Implement Win32 mutexes.sesse2010-03-061-27/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Win32 mutexes; they used to just be mapped on top of events, which is not the same thing at all. The implementation is pretty much the obvious one, similar to the current critical section implementation and the semaphore implementation; a single lock count protected by a pthread mutex, and an event lockers can sleep on to know when the mutex is available. Also make CreateMutexA and ReleaseMutex available even if QuickTime codecs support is not configured. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30853 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix semaphore behavior in WaitForSingleObject.sesse2010-03-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Two simple bugfixes for semaphores in WaitForSingleObject: First, semaphore count should be decreased on loading the semaphore, not increased. The case for duration=0 had this wrong (duration=-1 was fine). Second, the code for duration=-1 forgot to set the return value, so it would always return WAIT_FAILED. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30852 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Make Win32 mutex and thread linked lists thread safe.sesse2010-03-061-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | loader/win32.c contains a global linked list of all existing mutexes (whose head is called mlist), which is accessed from multiple threads, and as such needs to be protected by a mutex. Fixed. Same thing for the global linked list of all existing threads, whose head is called list. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30851 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30848Uoti Urpala2010-03-101-27/+65
|\|
| * Make GetModuleHandle(NULL) return a valid pointer.sesse2010-03-051-5/+19
| | | | | | | | | | | | | | | | | | | | | | Some codecs, and more recently Microsoft's CRT library, expect GetModuleHandle(NULL) to return a pointer to the program's PE header mapped in memory. Thus, just returning 0x0 or 0x1 won't do it anymore, so create a minimal PE header and return that. Patch originally by Gianluigi Tiesi ( mplayer (at) netfarm (dot) it ). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30848 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Partial revert of r30843.sesse2010-03-051-17/+5
| | | | | | | | | | | | | | | | | | Some extra changes snuck into my commit; they'll probably be reviewed and committed to Subversion eventually, but were not part of the fix for WaitForSingleObject on thread handles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30844 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Support thread handles in WaitForSingleObject.sesse2010-03-051-5/+29
| | | | | | | | | | | | | | | | Some codecs need this for clean shutdown (as opposed to a crash); we don't really support timed wait since POSIX doesn't, but it doesn't seem necessary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30843 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Make emulated Win32 critical sections thread safe.sesse2010-03-041-17/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Earlier, cs->locked was accessed outside the mutex to get around the problem that default pthread mutexes are not recursive (ie., you cannot do a double-lock from the same thread), causing a thread-safety problem, as both detected by Helgrind and showing up in some multithreaded codecs. The ideal solution here would be to simply use recursive pthread mutexes, but there were concerns about reduced debuggability and possibly portability. Thus, instead, rewrite the critical sections to be a simple lock count (with owner) protected by a regular mutex. Whenever a thread wants to enter the critical section and lock_count is not 0, it sleeps on a special event that tells it when the critical section is available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30837 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix crashes in CreatePalette by fixing the LOGPALETTE struct.sesse2010-03-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | CreatePalette had problems for me, and looking at the code it was quite obvious why; someone had reversed the order of the two elements of the LOGPALETTE struct, causing it to allocate and copy a bogus amount of memory. Why on earth anybody would want to do that is beyond me; whoever did it even left a comment, but it wasn't very helpful, as it crashed nevertheless. :-) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30832 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix manual reset behavior of Win32 events.sesse2010-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | Events have a “reset” member that specify if they flag is automatically set back on read/wait. However, this was populated by bManualReset, so the flag was inverted and once an event was set, it would forever be counted as so. Fixed by inverting the flag. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30831 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix return values of WaitForSingleObject when checking an event.sesse2010-03-041-2/+2
| | | | | | | | | | | | | | These were simply inverted compared to what they should be. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30830 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30748Uoti Urpala2010-03-1012-41/+41
|\|
| * Do not cast the results of malloc/calloc/realloc.diego2010-02-2612-41/+41
| | | | | | | | | | | | | | | | 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 r30702Uoti Urpala2010-03-102-2/+1
|\|
| * Remove pointless '#if 1' preprocessor directive.diego2010-02-221-2/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30702 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add declaration for exp_EH_prolog_dummy().diego2010-02-221-0/+1
| | | | | | | | | | | | | | This avoids a warning with -Wmissing-prototypes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30701 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30694Uoti Urpala2010-03-102-0/+5
|\|
| * Add public function VideoForWindowsVersion() to the appropriate header file.diego2010-02-211-0/+3
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30693 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Only #define WIN32_LOADER if it has not been #defined already, fixes warning:diego2010-02-211-0/+2
| | | | | | | | | | | | | | loader/win32.c:27:1: warning: "WIN32_LOADER" redefined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30689 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30675Uoti Urpala2010-03-103-3/+0
|\|
| * cosmetics: Remove pointless empty lines at EOF.diego2010-02-208-11/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30663Uoti Urpala2010-03-101-6/+0
|\| | | | | | | | | | | | | Conflicts: gui/cfg.c libmpcodecs/vd_dmo.c mplayer.c
| * Remove pointless '#if 1' preprocessor directives.diego2010-02-191-6/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30654 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30643Uoti Urpala2010-03-102-3/+23
|\|
| * Add a InitializeCriticalSectionAndSpinCount function.reimar2010-02-181-0/+6
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30640 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add a GetModuleHandleW implementation.reimar2010-02-181-0/+14
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30639 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Use snprintf to ensure we do not write outside the buffer boundsreimar2010-02-181-2/+2
| | | | | | | | | | | | | | when recording stub names into export_names. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30638 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add header #include for print_wave_header() instead of a forward declaration.diego2010-02-181-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30636 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30595Uoti Urpala2010-03-092-26/+26
|\| | | | | | | | | | | Conflicts: mplayer.c vidix/nvidia_vid.c
| * Directly mark structs as WINE_PACKED where all members are marked as packed.diego2010-02-142-26/+26
| | | | | | | | | | | | | | This fixes a ton of gcc warnings about ignored packed attributes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30581 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30550Uoti Urpala2010-03-0921-210/+155
|\|
| * Explain WIN32_LOADER definition hack.diego2010-02-121-0/+3
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30545 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Get rid of pointless CONFIG_QTX_CODECS --> QTX preprocessor indirection.diego2010-02-121-42/+39
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30544 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix linking of loader test programs when loader is disabled.diego2010-02-121-0/+1
| | | | | | | | | | | | | | Dependencies were only set correctly if the loader code was enabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30542 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add win32 loader support for OS/2komh2010-02-122-2/+30
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30541 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove pointless egcs #ifdefs; that compiler was never supported.diego2010-02-111-8/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30539 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove extern "C" declarations from loader code.diego2010-02-1119-158/+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
| * Add stubs for several functions, needed for CineForm codec.reimar2010-02-091-0/+82
| | | | | | | | | | | | | | | | Patch by Steinar H. Gunderson [sgunderson bigfoot com] with some modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30531 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30529Uoti Urpala2010-03-093-21/+5
|\|
| * Remove disabled AVIFILE-specific preprocessor code.diego2010-02-081-9/+0
| | | | | | | | | | | | | | It will never get enabled in MPlayer, nor is it more than cruft. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30526 b3059339-0415-0410-9bf9-f77b7e298cf2
| * 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
| * Release pin enumerator after we are done using it.reimar2010-02-051-0/+1
| | | | | | | | | | | | | | | | Fixes issues with CoreAVC tray icon. Patch by Gianluigi Tiesi [mplayer netfarm it] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30516 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30514Uoti Urpala2010-03-091-25/+31
|\|
| * Prefix EXTERN_ASM to global variables to match them to an extern prefix of C.komh2010-02-051-22/+28
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30512 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove '.section' causing the following assembler error on OS/2.komh2010-02-051-2/+2
| | | | | | | | | | | | | | Error: unknown pseudo-op: `.section' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30511 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30494Uoti Urpala2010-03-092-2/+37
|\| | | | | | | |