summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-16 01:56:19 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-16 01:56:19 +0000
commitc927d02505f5e6ed133bb2b3bbf82c93d8bfda2c (patch)
tree848b5f8908b9eb80468e1f89158a896379de2ed0 /mplayer.c
parent38120f512a7777ff2033ecfb8514e855fb8e18d4 (diff)
downloadmpv-c927d02505f5e6ed133bb2b3bbf82c93d8bfda2c.tar.bz2
mpv-c927d02505f5e6ed133bb2b3bbf82c93d8bfda2c.tar.xz
hints on RTFM
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5128 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index bb620be214..12fa60e415 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -378,9 +378,23 @@ void exit_sighandler(int x){
// can't stop :(
kill(getpid(),SIGKILL);
}
- mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_IntBySignal,x,
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"\n" MSGTR_IntBySignal,x,
current_module?current_module:mp_gettext("unknown")
);
+ switch(x){
+ case SIGINT:
+ case SIGQUIT:
+ case SIGTERM:
+ case SIGKILL:
+ break; // killed from keyboard (^C) or killed [-9]
+ case SIGILL:
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"- MPlayer crashed by 'Illegal Instruction'. It usually happens when you run it on different CPU than it was compiled for. Verify this!\n");
+ case SIGFPE:
+ case SIGSEGV:
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b.\n");
+ default:
+ mp_msg(MSGT_CPLAYER,MSGL_FATAL,"- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, read DOCS/bugreports.html and follow instructions there. We can't and won't help unless you provide these informations when reporting a possible bug.\n");
+ }
exit_player(NULL);
}