From 9b077a5cca12276e8e22a61d8d61fc639459e6cd Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 31 Mar 2017 17:28:15 +0200 Subject: command: add property notifications for hwdec properties This is a bit approximate, because we rely on the pixel format changing if the hardware decoding changes. This is not always true, as the pixel format for software decoded video and hardware decoded video copied back to CPU RAM could be the same. (Not sure if that is actually the case for any supported cases.) But for now this should fix most of #4289. --- player/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player') diff --git a/player/command.c b/player/command.c index 1732b7b3cd..900617c683 100644 --- a/player/command.c +++ b/player/command.c @@ -4120,9 +4120,9 @@ static const char *const *const mp_event_property_change[] = { E(MPV_EVENT_VIDEO_RECONFIG, "video-out-params", "video-params", "video-format", "video-codec", "video-bitrate", "dwidth", "dheight", "width", "height", "fps", "aspect", "vo-configured", "current-vo", - "detected-hwdec", "colormatrix", "colormatrix-input-range", - "colormatrix-output-range", "colormatrix-primaries", "video-aspect", - "video-dec-params"), + "colormatrix", "colormatrix-input-range", "colormatrix-output-range", + "colormatrix-primaries", "video-aspect", "video-dec-params", + "hwdec", "hwdec-current", "hwdec-interop"), E(MPV_EVENT_AUDIO_RECONFIG, "audio-format", "audio-codec", "audio-bitrate", "samplerate", "channels", "audio", "volume", "mute", "balance", "current-ao", "audio-codec-name", "audio-params", -- cgit v1.2.3