summaryrefslogtreecommitdiffstats
path: root/mpvcore/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-19 22:29:55 +0200
committerwm4 <wm4@nowhere>2013-08-19 22:32:25 +0200
commitfb022db423f928e3ded896ca80fe89d4b17ecce5 (patch)
tree5fb7bba3da6097591001cec9f28a673ed728a733 /mpvcore/mp_core.h
parent7cec294d088d80f293e44218c748cf61db4f0879 (diff)
downloadmpv-fb022db423f928e3ded896ca80fe89d4b17ecce5.tar.bz2
mpv-fb022db423f928e3ded896ca80fe89d4b17ecce5.tar.xz
mp_core: declare seek_type enum outside of nested struct
cosmetic change. See previous commit.
Diffstat (limited to 'mpvcore/mp_core.h')
-rw-r--r--mpvcore/mp_core.h11
1 files 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()