summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-01 23:01:37 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-01 23:01:37 +0000
commitdfe61e222e0ba7da38aade8a1da4461fb9f269c3 (patch)
treea2e09a61bbb7b1dc31c6136f2facb0ee2a78e65d /mplayer.c
parent335fc17b448b7fc00ec26641a9be15fe2ce50ec6 (diff)
downloadmpv-dfe61e222e0ba7da38aade8a1da4461fb9f269c3.tar.bz2
mpv-dfe61e222e0ba7da38aade8a1da4461fb9f269c3.tar.xz
lamer_protection++
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@274 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 6a07a1e014..dc8daee0ef 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -940,7 +940,13 @@ switch(has_video){
//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 @@ if(has_audio==7){
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