diff options
author | wm4 <wm4@nowhere> | 2017-03-31 17:28:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-31 17:28:15 +0200 |
commit | 9b077a5cca12276e8e22a61d8d61fc639459e6cd (patch) | |
tree | d265f510fdc4145f25ba7f61a8fc680c6274bcae | |
parent | c68be80a63f100d1a55d8be7273c89734d6abeeb (diff) | |
download | mpv-9b077a5cca12276e8e22a61d8d61fc639459e6cd.tar.bz2 mpv-9b077a5cca12276e8e22a61d8d61fc639459e6cd.tar.xz |
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.
-rw-r--r-- | player/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
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", |