diff options
author | wm4 <wm4@nowhere> | 2013-04-25 20:38:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-04-25 20:52:20 +0200 |
commit | 3765cfcf57e0232b5e96e77d9dd628755f1c0518 (patch) | |
tree | 8644ca978ddbc535dffc1202b03d5e3ac3fc8deb /core/options.h | |
parent | e1fccfdcd8a9efb2e3ce70cc4b7aba3e0eb91836 (diff) | |
download | mpv-3765cfcf57e0232b5e96e77d9dd628755f1c0518.tar.bz2 mpv-3765cfcf57e0232b5e96e77d9dd628755f1c0518.tar.xz |
core: simplify handling of --pause
Rename the struct MPOpts "start_pause" field to "pause". Store the user-
pause state in that field, so that both runtime pause toggling and the
--pause switch change the same variable. Simplify the initialization of
pause so that using --pause and changing the file while paused is
exactly the same case (changing the file while paused doesn't unpause,
this has been always this way).
Also make it a bit more consistent. Before, starting with --pause would
reset the pause state for every file, instead of following the usual
semantics for option switches (compare with behavior of --fs).
Diffstat (limited to 'core/options.h')
-rw-r--r-- | core/options.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/options.h b/core/options.h index 35d0329b7a..8806a66211 100644 --- a/core/options.h +++ b/core/options.h @@ -125,7 +125,7 @@ typedef struct MPOpts { int play_frames; double step_sec; int64_t seek_to_byte; - int start_paused; + int pause; int keep_open; int audio_id; int video_id; |