[MPlayer-dev-eng] [PATCH] Abort on Fatal Messages

Tobias Diedrich ranma at tdiedrich.de
Wed Mar 9 19:47:18 CET 2011


Abort on fatal messages.

mp_msg.h says we abort on fatal messages, but we currently don't.

Index: mplayer-patchset1/mp_msg.c
===================================================================
--- mplayer-patchset1.orig/mp_msg.c	2011-02-18 20:01:54.436871000 +0100
+++ mplayer-patchset1/mp_msg.c	2011-02-18 20:02:26.823321000 +0100
@@ -242,4 +242,7 @@
     if (mp_msg_color)
         fprintf(stream, "\033[0m");
     fflush(stream);
+
+    if (lev == MSGL_FATAL)
+        abort();
 }


More information about the MPlayer-dev-eng mailing list