summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-24 17:36:02 +0100
committerwm4 <wm4@nowhere>2015-12-24 17:36:02 +0100
commit940007cbf98f554435baa7909c3528fc616a6e2f (patch)
tree5d746a311991263ca46a2a1b060fc74c5af7f64f /player/command.c
parentbbb65ed84b04a834f3c72df1e9f46afb81d6ec91 (diff)
downloadmpv-940007cbf98f554435baa7909c3528fc616a6e2f.tar.bz2
mpv-940007cbf98f554435baa7909c3528fc616a6e2f.tar.xz
command: fix eof-reached property change notification in corner cases
See #2609: "When eof is reached it would be shown on the OSD and in the console. Next try seeking to the middle. Seeking to the middle of the file will only result in the OSD message being updated. Lua seems to fail to observe the change in the property until the video is unpaused."
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c
index 6bb811dfd5..fe0f96aba7 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3697,8 +3697,8 @@ static const char *const *const mp_event_property_change[] = {
"samplerate", "channels", "audio", "volume", "mute", "balance",
"volume-restore-data", "current-ao", "audio-codec-name", "audio-params",
"audio-out-params"),
- E(MPV_EVENT_SEEK, "seeking", "core-idle"),
- E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle"),
+ E(MPV_EVENT_SEEK, "seeking", "core-idle", "eof-reached"),
+ E(MPV_EVENT_PLAYBACK_RESTART, "seeking", "core-idle", "eof-reached"),
E(MPV_EVENT_METADATA_UPDATE, "metadata", "filtered-metadata", "media-title"),
E(MPV_EVENT_CHAPTER_CHANGE, "chapter", "chapter-metadata"),
E(MP_EVENT_CACHE_UPDATE, "cache", "cache-free", "cache-used", "cache-idle",