From 940007cbf98f554435baa7909c3528fc616a6e2f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 24 Dec 2015 17:36:02 +0100 Subject: [PATCH] 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." --- player/command.c | 4 ++-- 1 file 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",