aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-07 00:57:28 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-07 00:57:28 +0000
commit8d02d0ae59f7eacefb4ac11cb82400fae8772a2f (patch)
tree7260542535d6edcf13836d3981a630e8716ce038
parentc39912c7592f8ca77aa45a9fed0e6bf4f8baf826 (diff)
ugly hack for bad codecs.conf hangup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2117 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index c9c31922b7..da14e91edb 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -535,7 +535,11 @@ int gui_no_filename=0;
if(!parse_codec_cfg(get_path("codecs.conf"))){
if(!parse_codec_cfg(DATADIR"/codecs.conf")){
mp_msg(MSGT_CPLAYER,MSGL_HINT,MSGTR_CopyCodecsConf);
- exit(1);
+// printf("Exit.\n");
+// exit(0); // From unknown reason a hangup occurs here :((((((
+ kill(getpid(),SIGTERM);
+ usleep(20000);
+ kill(getpid(),SIGKILL);
}
}