diff options
author | wm4 <wm4@nowhere> | 2012-07-30 15:46:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-30 15:46:05 +0200 |
commit | 17b69493b70413326c95c3c552009626809b45ec (patch) | |
tree | e20bc4ef93dfa845ae7988ecdeb11b843b58dcc1 /libvo/vo_md5sum.c | |
parent | bff71641f6486a141b6091969955d4defd6be77b (diff) | |
download | mpv-17b69493b70413326c95c3c552009626809b45ec.tar.bz2 mpv-17b69493b70413326c95c3c552009626809b45ec.tar.xz |
libvo: remove exit_player_bad()
For some reason, these 3 VOs basically call exit() if something
went wrong.
Diffstat (limited to 'libvo/vo_md5sum.c')
-rw-r--r-- | libvo/vo_md5sum.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |