From fb022db423f928e3ded896ca80fe89d4b17ecce5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Aug 2013 22:29:55 +0200 Subject: mp_core: declare seek_type enum outside of nested struct cosmetic change. See previous commit. --- mpvcore/mp_core.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mpvcore/mp_core.h b/mpvcore/mp_core.h index 0ce37b8aa5..ac79d6ca0c 100644 --- a/mpvcore/mp_core.h +++ b/mpvcore/mp_core.h @@ -76,6 +76,13 @@ enum mp_osd_seek_info { OSD_SEEK_INFO_EDITION = 8, }; +enum seek_type { + MPSEEK_NONE = 0, + MPSEEK_RELATIVE, + MPSEEK_ABSOLUTE, + MPSEEK_FACTOR, +}; + struct track { enum stream_type type; // The type specific ID, also called aid (audio), sid (subs), vid (video). @@ -251,9 +258,7 @@ typedef struct MPContext { // Used to communicate the parameters of a seek between parts struct seek_params { - enum seek_type { - MPSEEK_NONE, MPSEEK_RELATIVE, MPSEEK_ABSOLUTE, MPSEEK_FACTOR - } type; + enum seek_type type; double amount; int exact; // -1 = disable, 0 = default, 1 = enable // currently not set by commands, only used internally by seek() -- cgit v1.2.3