Mercurial > mplayer.hg
comparison mplayer.c @ 919:da072473937a
Extended message for misisng codecs
author | arpi_esp |
---|---|
date | Thu, 31 May 2001 16:35:36 +0000 |
parents | 8eca9b7aafae |
children | c18f0a1bee08 |
comparison
equal
deleted
inserted
replaced
918:6882ba6610c3 | 919:da072473937a |
---|---|
1085 sh_audio->codec=NULL; | 1085 sh_audio->codec=NULL; |
1086 while(1){ | 1086 while(1){ |
1087 sh_audio->codec=find_codec(sh_audio->format,NULL,sh_audio->codec,1); | 1087 sh_audio->codec=find_codec(sh_audio->format,NULL,sh_audio->codec,1); |
1088 if(!sh_audio->codec){ | 1088 if(!sh_audio->codec){ |
1089 printf("Can't find codec for audio format 0x%X !\n",sh_audio->format); | 1089 printf("Can't find codec for audio format 0x%X !\n",sh_audio->format); |
1090 printf("*** Try to upgrade %s from DOCS/codecs.conf\n",get_path("codecs.conf")); | |
1091 printf("*** If it's still not OK, then read DOCS/CODECS!\n"); | |
1090 has_audio=0; | 1092 has_audio=0; |
1091 break; | 1093 break; |
1092 } | 1094 } |
1093 if(audio_format>0 && sh_audio->codec->driver!=audio_format) continue; | 1095 if(audio_format>0 && sh_audio->codec->driver!=audio_format) continue; |
1094 printf("Found audio codec: [%s] drv:%d (%s)\n",sh_audio->codec->name,sh_audio->codec->driver,sh_audio->codec->info); | 1096 printf("Found audio codec: [%s] drv:%d (%s)\n",sh_audio->codec->name,sh_audio->codec->driver,sh_audio->codec->info); |
1115 while(1){ | 1117 while(1){ |
1116 sh_video->codec=find_codec(sh_video->format, | 1118 sh_video->codec=find_codec(sh_video->format, |
1117 sh_video->bih?((unsigned int*) &sh_video->bih->biCompression):NULL,sh_video->codec,0); | 1119 sh_video->bih?((unsigned int*) &sh_video->bih->biCompression):NULL,sh_video->codec,0); |
1118 if(!sh_video->codec){ | 1120 if(!sh_video->codec){ |
1119 printf("Can't find codec for video format 0x%X !\n",sh_video->format); | 1121 printf("Can't find codec for video format 0x%X !\n",sh_video->format); |
1122 printf("*** Try to upgrade %s from DOCS/codecs.conf\n",get_path("codecs.conf")); | |
1123 printf("*** If it's still not OK, then read DOCS/CODECS!\n"); | |
1120 #ifdef HAVE_GUI | 1124 #ifdef HAVE_GUI |
1121 if ( !nogui ) | 1125 if ( !nogui ) |
1122 { | 1126 { |
1123 mplShMem->items.videodata.format=sh_video->format; | 1127 mplShMem->items.videodata.format=sh_video->format; |
1124 mplSendMessage( mplCantFindCodecForVideoFormat ); | 1128 mplSendMessage( mplCantFindCodecForVideoFormat ); |