diff mplayer.c @ 2116:6365b02ccc6e

ugly hack for bad codecs.conf hangup
author arpi
date Sun, 07 Oct 2001 00:57:28 +0000
parents 569a5d7b5d8a
children e509abdbf195
line wrap: on
line diff
--- a/mplayer.c	Sun Oct 07 00:22:43 2001 +0000
+++ b/mplayer.c	Sun Oct 07 00:57:28 2001 +0000
@@ -535,7 +535,11 @@
 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);
   }
 }