Mercurial > mplayer.hg
changeset 8733:478561617705
compiler warning fixes by Dominik Mierzejewski <dominik@rangers.eu.org>
author | arpi |
---|---|
date | Fri, 03 Jan 2003 12:26:17 +0000 |
parents | 450015fb59e6 |
children | d5393a5a1114 |
files | libmpcodecs/ve_qtvideo.c mplayer.c subreader.h vidix/drivers/cyberblade_regs.h vobsub.c |
diffstat | 5 files changed, 22 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_qtvideo.c Fri Jan 03 12:14:34 2003 +0000 +++ b/libmpcodecs/ve_qtvideo.c Fri Jan 03 12:26:17 2003 +0000 @@ -16,6 +16,10 @@ #include "../loader/qtx/qtxsdk/components.h" #include "wine/windef.h" +#ifdef USE_WIN32DLL +#include "ldt_keeper.h" +#endif + #include "codec-cfg.h" #include "stream.h" #include "demuxer.h" @@ -292,18 +296,18 @@ Setup_LDT_Keeper(); handler = LoadLibraryA("qtmlClient.dll"); - InitializeQTML = GetProcAddress(handler, "InitializeQTML"); - GetGWorldPixMap = GetProcAddress(handler, "GetGWorldPixMap"); - QTNewGWorldFromPtr = GetProcAddress(handler, "QTNewGWorldFromPtr"); - NewHandleClear = GetProcAddress(handler, "NewHandleClear"); - FindCodec = GetProcAddress(handler,"FindCodec"); - CompressSequenceBegin = GetProcAddress(handler,"CompressSequenceBegin"); - CompressSequenceFrame = GetProcAddress(handler,"CompressSequenceFrame"); - GetMaxCompressionSize = GetProcAddress(handler,"GetMaxCompressionSize"); - CDSequenceEnd = GetProcAddress(handler,"CDSequenceEnd"); - FindNextComponent = GetProcAddress(handler, "FindNextComponent"); - CountComponents = GetProcAddress(handler, "CountComponents"); - GetComponentInfo = GetProcAddress(handler, "GetComponentInfo"); + InitializeQTML = (OSErr (*)(long))GetProcAddress(handler, "InitializeQTML"); + GetGWorldPixMap = (PixMapHandle (*)(GWorldPtr))GetProcAddress(handler, "GetGWorldPixMap"); + QTNewGWorldFromPtr = (OSErr(*)(GWorldPtr *,OSType,const Rect *,CTabHandle,void*,GWorldFlags,void *,long))GetProcAddress(handler, "QTNewGWorldFromPtr"); + NewHandleClear = (OSErr(*)(Size))GetProcAddress(handler, "NewHandleClear"); + FindCodec = (OSErr (*)(CodecType,CodecComponent,CompressorComponent *,DecompressorComponent *))GetProcAddress(handler,"FindCodec"); + CompressSequenceBegin = (OSErr(*)(ImageSequence *,PixMapHandle,PixMapHandle,const Rect *,const Rect *,short,CodecType,CompressorComponent,CodecQ,CodecQ,long,CTabHandle,CodecFlags,ImageDescriptionHandle))GetProcAddress(handler,"CompressSequenceBegin"); + CompressSequenceFrame = (OSErr(*)(ImageSequence,PixMapHandle,const Rect *,CodecFlags,Ptr,long *,UInt8 *,ICMCompletionProcRecordPtr))GetProcAddress(handler,"CompressSequenceFrame"); + GetMaxCompressionSize = (OSErr(*)(PixMapHandle,const Rect *,short,CodecQ,CodecType,CompressorComponent,long *))GetProcAddress(handler,"GetMaxCompressionSize"); + CDSequenceEnd = (OSErr (*)(ImageSequence))GetProcAddress(handler,"CDSequenceEnd"); + FindNextComponent = (Component (*)(Component,ComponentDescription*))GetProcAddress(handler, "FindNextComponent"); + CountComponents = (long (*)(ComponentDescription*))GetProcAddress(handler, "CountComponents"); + GetComponentInfo = (OSErr (*)(Component,ComponentDescription*,Handle,Handle,Handle))GetProcAddress(handler, "GetComponentInfo"); if(!InitializeQTML ||!CompressSequenceBegin){ printf("invalid qt DLL!\n"); return 0;
--- a/mplayer.c Fri Jan 03 12:14:34 2003 +0000 +++ b/mplayer.c Fri Jan 03 12:26:17 2003 +0000 @@ -857,7 +857,7 @@ next_edl_record->next = NULL; } else { if( ( edl_fd = fopen( edl_output_filename, "w" ) ) == NULL ) { - printf( "Error opening file [%s] for writing!\n" ); + printf( "Error opening file [%s] for writing!\n", edl_output_filename ); edl_output_filename = NULL; next_edl_record->next = NULL; }
--- a/subreader.h Fri Jan 03 12:14:34 2003 +0000 +++ b/subreader.h Fri Jan 03 12:26:17 2003 +0000 @@ -39,6 +39,8 @@ subtitle* sub_read_file (char *filename, float pts); subtitle* subcp_recode1 (subtitle *sub); +void subcp_open (void); /* for demux_ogg.c */ +void subcp_close (void); /* for demux_ogg.c */ char * sub_filename(char *path, char * fname); void list_sub_file(subtitle* subs); void dump_srt(subtitle* subs, float fps);
--- a/vidix/drivers/cyberblade_regs.h Fri Jan 03 12:14:34 2003 +0000 +++ b/vidix/drivers/cyberblade_regs.h Fri Jan 03 12:26:17 2003 +0000 @@ -135,12 +135,12 @@ #define OUTW(addr,val) (*(unsigned short *)(cyberblade_reg_base+addr)=(val)) #define SRINB(reg) (OUTB(0x3c4,reg), INB(0x3c5)) -#define SROUTB(reg,val) (OUTW(0x3c4,(val)<<8|reg)) +#define SROUTB(reg,val) (OUTW(0x3c4,((val)<<8)|(reg))) #define CRINB(reg) \ (OUTB(cyberblade_crtc+4,reg), INB(cyberblade_crtc+5)) #define CROUTB(reg,val) \ - (OUTW(cyberblade_crtc+4,(val)<<8|reg)) + (OUTW(cyberblade_crtc+4,((val)<<8)|(reg))) /* --- */
--- a/vobsub.c Fri Jan 03 12:14:34 2003 +0000 +++ b/vobsub.c Fri Jan 03 12:26:17 2003 +0000 @@ -1161,7 +1161,7 @@ if ((strncmp(vob->spu_streams[i].id, lang, 2)==0)){ vobsub_id=i; mp_msg(MSGT_VOBSUB, MSGL_INFO, "Selected VOBSUB language: %d language: %s\n", i, vob->spu_streams[i].id); - return; + return 0; } lang+=2;while (lang[0]==',' || lang[0]==' ') ++lang; }