# HG changeset patch # User arpi_esp # Date 986166097 0 # Node ID 167356f35b8f795ddc8142ef1a65e819bfda12a3 # Parent 8ffe2f45985148f9197554d01fe34a1625c26507 lamer_protection++ diff -r 8ffe2f459851 -r 167356f35b8f mplayer.c --- a/mplayer.c Sun Apr 01 22:01:28 2001 +0000 +++ b/mplayer.c Sun Apr 01 23:01:37 2001 +0000 @@ -940,7 +940,13 @@ //if(verbose) printf("AVI out_fmt=%X\n",out_fmt); if(verbose) if(out_fmt==IMGFMT_YUY2) printf("Using YUV/YUY2 video output format!\n"); avi_header.our_out_buffer=NULL; - DS_VideoDecoder_Open(avi_header.video_codec,avi_header.vids_guid, &avi_header.bih, 0, &avi_header.our_out_buffer); + if(DS_VideoDecoder_Open(avi_header.video_codec,avi_header.vids_guid, &avi_header.bih, 0, &avi_header.our_out_buffer)){ + printf("ERROR: Couldn't open required DirectShow codec: %s\n",avi_header.video_codec); + printf("Maybe you forget to upgrade your win32 codecs?? It's time to download the new\n"); + printf("package from: ftp://thot.banki.hu/esp-team/linux/MPlayer/w32codec.zip !\n"); + printf("Or you should disable DShow support: make distclean;make -f Makefile.No-DS\n"); + exit(1); + } if(out_fmt==IMGFMT_YUY2) DS_VideoDecoder_SetDestFmt(16,mmioFOURCC('Y', 'U', 'Y', '2')); @@ -1279,11 +1285,12 @@ a_in_buffer_len=0; } else { - printf("Could not load/initialize Win32/DirctShow AUDIO codec (missing .AX file?)\n"); + printf("ERROR: Could not load/initialize Win32/DirctShow AUDIO codec: %s\n",avi_header.audio_codec); if((in_fmt->wFormatTag)==0x55){ printf("Audio format is MP3 -> fallback to internal mp3lib/mpg123\n"); has_audio=1; // fallback to mp3lib } else + printf("Audio disabled! Try to upgrade your w32codec.zip package!!!\n"); has_audio=0; // nosound } #endif