Mercurial > mplayer.hg
diff libmpcodecs/ad_qtaudio.c @ 26216:e402c7730fcf
Introduce HAVE_QUICKTIME definition and use it where appropriate.
author | diego |
---|---|
date | Sat, 15 Mar 2008 11:31:28 +0000 |
parents | a033e5519802 |
children | 3a2e8ae7c548 |
line wrap: on
line diff
--- a/libmpcodecs/ad_qtaudio.c Sat Mar 15 10:04:19 2008 +0000 +++ b/libmpcodecs/ad_qtaudio.c Sat Mar 15 11:31:28 2008 +0000 @@ -5,7 +5,7 @@ #include "config.h" -#ifdef MACOSX +#ifdef HAVE_QUICKTIME #include <QuickTime/QuickTimeComponents.h> #endif @@ -30,7 +30,7 @@ LIBAD_EXTERN(qtaudio) -#if !defined(MACOSX) +#ifndef HAVE_QUICKTIME typedef struct OpaqueSoundConverter* SoundConverter; typedef unsigned long OSType; typedef unsigned long UnsignedFixed; @@ -164,7 +164,7 @@ mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"loader_init DONE???\n"); return 0; } -#endif /* #if !defined(MACOSX) */ +#endif /* #ifndef HAVE_QUICKTIME */ static SoundConverter myConverter = NULL; static SoundComponentData InputFormatInfo,OutputFormatInfo; @@ -180,7 +180,7 @@ unsigned long WantedBufferSize=0; //the size you want your buffers to be -#ifdef MACOSX +#ifdef HAVE_QUICKTIME EnterMovies(); #else if(loader_init()) return 0; // failed to load DLL @@ -280,7 +280,7 @@ // FreeLibrary( qtime_qts ); // qtime_qts = NULL; // printf("qt dll loader uninit done\n"); -#ifdef MACOSX +#ifdef HAVE_QUICKTIME ExitMovies(); #endif }