summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-15 23:45:19 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-15 23:45:19 +0000
commitd2392f84364e4bf0a61e5c402088c3c8d33098b4 (patch)
tree786dc2fe1f3478d2cd91758f0d9450ed0b613116 /mplayer.c
parentb6ad7ce43d5a94bd8bba42065cff216c5b4ac96d (diff)
downloadmpv-d2392f84364e4bf0a61e5c402088c3c8d33098b4.tar.bz2
mpv-d2392f84364e4bf0a61e5c402088c3c8d33098b4.tar.xz
Fallback to builtin (generated from etc/codecs.conf at compile time)
codecs.conf if no ext configfile found. Based on patch by Sidik Isani <lksi@cfht.hawaii.edu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8468 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index ba43f759b7..e01b951e8f 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -686,8 +686,11 @@ int gui_no_filename=0;
// check codec.conf
if(!parse_codec_cfg(get_path("codecs.conf"))){
if(!parse_codec_cfg(CONFDIR"/codecs.conf")){
- mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf);
- exit(0); // From unknown reason a hangup occurs here :((((((
+ if(!parse_codec_cfg(NULL)){
+ mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf);
+ exit(0);
+ }
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_BuiltinCodecsConf);
}
}