changeset 2116:6365b02ccc6e

ugly hack for bad codecs.conf hangup
author arpi
date Sun, 07 Oct 2001 00:57:28 +0000
parents fe1cd4a5109a
children e3086808ee19
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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);
   }
 }