summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-31 22:35:48 +0100
committerwm4 <wm4@nowhere>2012-10-31 22:35:48 +0100
commit334db4cad219735c0327c079597c7e37fb9dce8b (patch)
tree386583984fdcde934b9022720f3fafd817d81f17
parentd02b8191bfd7c827462eea644f7c981ee9febc7f (diff)
downloadmpv-334db4cad219735c0327c079597c7e37fb9dce8b.tar.bz2
mpv-334db4cad219735c0327c079597c7e37fb9dce8b.tar.xz
mplayer: mark exit_player as noreturn
Similar to mplayer-svn commit r35291.
-rw-r--r--mplayer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index a516c0bb4a..7bc0329600 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -23,6 +23,7 @@
#include <assert.h>
#include <libavutil/intreadwrite.h>
+#include <libavutil/attributes.h>
#include "config.h"
#include "talloc.h"
@@ -575,7 +576,8 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask)
}
}
-static void exit_player(struct MPContext *mpctx, enum exit_reason how, int rc)
+static av_noreturn void exit_player(struct MPContext *mpctx,
+ enum exit_reason how, int rc)
{
uninit_player(mpctx, INITIALIZED_ALL);