diff options
author | wm4 <wm4@nowhere> | 2013-04-25 19:07:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-04-25 20:49:23 +0200 |
commit | e1fccfdcd8a9efb2e3ce70cc4b7aba3e0eb91836 (patch) | |
tree | 645d3e1c5cf8df4113eb1942c4c3337547a18d01 /core/mp_core.h | |
parent | 848542a513b27ae9b2d573b626e06bd96a99ca1d (diff) | |
download | mpv-e1fccfdcd8a9efb2e3ce70cc4b7aba3e0eb91836.tar.bz2 mpv-e1fccfdcd8a9efb2e3ce70cc4b7aba3e0eb91836.tar.xz |
core: don't let cache pause handling and user pausing conflict
The core pauses and unpauses automatically to wait for the network
cache (also known as buffering). This conflicted with user pause
control, and was perceived as if the player was unresponsive and/or
the cache just overturned the user's decisions.
Change it so that the actual pause state and the pause state as
intended by the user never conflict. If the user toggles pause, the
pause state will be in the expected state as soon as the cache is
loaded.
Diffstat (limited to 'core/mp_core.h')
-rw-r--r-- | core/mp_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mp_core.h b/core/mp_core.h index 82942c32cb..9b08492d77 100644 --- a/core/mp_core.h +++ b/core/mp_core.h @@ -272,7 +272,7 @@ typedef struct MPContext { int max_frames; bool playing_msg_shown; - bool paused_for_cache; + bool paused_for_cache, paused_user; // Set after showing warning about decoding being too slow for realtime // playback rate. Used to avoid showing it multiple times. |