mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
mp_core: declare seek_type enum outside of nested struct
cosmetic change. See previous commit.
This commit is contained in:
parent
7cec294d08
commit
fb022db423
@ -76,6 +76,13 @@ enum mp_osd_seek_info {
|
|||||||
OSD_SEEK_INFO_EDITION = 8,
|
OSD_SEEK_INFO_EDITION = 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum seek_type {
|
||||||
|
MPSEEK_NONE = 0,
|
||||||
|
MPSEEK_RELATIVE,
|
||||||
|
MPSEEK_ABSOLUTE,
|
||||||
|
MPSEEK_FACTOR,
|
||||||
|
};
|
||||||
|
|
||||||
struct track {
|
struct track {
|
||||||
enum stream_type type;
|
enum stream_type type;
|
||||||
// The type specific ID, also called aid (audio), sid (subs), vid (video).
|
// 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
|
// Used to communicate the parameters of a seek between parts
|
||||||
struct seek_params {
|
struct seek_params {
|
||||||
enum seek_type {
|
enum seek_type type;
|
||||||
MPSEEK_NONE, MPSEEK_RELATIVE, MPSEEK_ABSOLUTE, MPSEEK_FACTOR
|
|
||||||
} type;
|
|
||||||
double amount;
|
double amount;
|
||||||
int exact; // -1 = disable, 0 = default, 1 = enable
|
int exact; // -1 = disable, 0 = default, 1 = enable
|
||||||
// currently not set by commands, only used internally by seek()
|
// currently not set by commands, only used internally by seek()
|
||||||
|
Loading…
Reference in New Issue
Block a user