From 17b69493b70413326c95c3c552009626809b45ec Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 30 Jul 2012 15:46:05 +0200 Subject: libvo: remove exit_player_bad() For some reason, these 3 VOs basically call exit() if something went wrong. --- libvo/vo_md5sum.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libvo/vo_md5sum.c') diff --git a/libvo/vo_md5sum.c b/libvo/vo_md5sum.c index dc3487ef3b..9c9a4d2f97 100644 --- a/libvo/vo_md5sum.c +++ b/libvo/vo_md5sum.c @@ -40,7 +40,6 @@ #include "mp_msg.h" #include "video_out.h" #include "video_out_internal.h" -#include "mplayer.h" /* for exit_player_bad() */ #include "libavutil/md5.h" /* ------------------------------------------------------------------------- */ @@ -78,7 +77,6 @@ int framenum = 0; static void md5sum_write_error(void) { mp_tmsg(MSGT_VO, MSGL_ERR, "%s: Error writing file.\n", info.short_name); - exit_player_bad(_("Fatal error")); } /* ------------------------------------------------------------------------- */ @@ -144,7 +142,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, _("Unable to create output file.")); mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n", info.short_name, _("This error has occurred"), strerror(errno) ); - exit_player_bad(_("Fatal error")); + return -1; } return 0; -- cgit v1.2.3