summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2015-01-23 09:28:21 +0900
committerwm4 <wm4@nowhere>2015-01-23 10:35:56 +0100
commitd1886f3318773d4232895e862555c03b24636c05 (patch)
tree3c6924b06c627b14d32123cfe6a489bd45d62481 /player/command.c
parentc29ab5a46b2676d013e4294ee719d83f6bc469b6 (diff)
downloadmpv-d1886f3318773d4232895e862555c03b24636c05.tar.bz2
mpv-d1886f3318773d4232895e862555c03b24636c05.tar.xz
player: some fixes for property notification
`core-idle` depends on seeking state `mpctx->restart_complete`, so make `core-idle` notified whenever `seeking` is notified, too. `paused-for-cache` can be changed on MPV_EVENT_CACHE_UPDATE obviously. Finally, `MPV_EVENT_PLAYBACK_RESTART` should be notified after `mpctx->restart_complete` changed.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c
index bfdc823018..922734211c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3443,12 +3443,12 @@ static const char *const *const mp_event_property_change[] = {
"width", "height", "fps", "aspect", "vo-configured"),
E(MPV_EVENT_AUDIO_RECONFIG, "audio-format", "audio-codec", "audio-bitrate",
"samplerate", "channels", "audio"),
- E(MPV_EVENT_SEEK, "seeking"),
- E(MPV_EVENT_PLAYBACK_RESTART, "seeking"),
+ E(MPV_EVENT_SEEK, "seeking", "core-idle"),
+ E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle"),
E(MPV_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata"),
E(MPV_EVENT_CHAPTER_CHANGE, "chapter", "chapter-metadata"),
E(MP_EVENT_CACHE_UPDATE, "cache", "cache-free", "cache-used", "cache-idle",
- "demuxer-cache-duration", "demuxer-cache-idle"),
+ "demuxer-cache-duration", "demuxer-cache-idle", "paused-for-cache"),
E(MP_EVENT_WIN_RESIZE, "window-scale"),
E(MP_EVENT_WIN_STATE, "window-minimized", "display-names"),
};