From cbd8b1aed2d3ebeabab5f904d3f44a37d99c487c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 3 Aug 2024 16:02:17 +0200 Subject: [PATCH] Add TODO for missing async response events --- src/event_parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/event_parser.rs b/src/event_parser.rs index 241c01f..5c9a142 100644 --- a/src/event_parser.rs +++ b/src/event_parser.rs @@ -209,9 +209,16 @@ pub(crate) fn parse_event(raw_event: MpvIpcEvent) -> Result { "shutdown" => Ok(Event::Shutdown), "log-message" => parse_log_message(event), "hook" => parse_hook(event), + + // TODO: fix these. They are asynchronous responses to different requests. + // see: + // - https://github.com/mpv-player/mpv/blob/5f768a688b706cf94041adf5bed7c7004af2ec5a/libmpv/client.h#L1158-L1160 + // - https://github.com/mpv-player/mpv/blob/5f768a688b706cf94041adf5bed7c7004af2ec5a/libmpv/client.h#L1095-L1098 + // - https://github.com/mpv-player/mpv/blob/5f768a688b706cf94041adf5bed7c7004af2ec5a/libmpv/client.h#L972-L982 // "get-property-reply" => // "set-property-reply" => // "command-reply" => + "client-message" => parse_client_message(event), "video-reconfig" => Ok(Event::VideoReconfig), "audio-reconfig" => Ok(Event::AudioReconfig),