Skip to content

Commit

Permalink
command: add property notifications for hwdec properties
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wm4 committed Mar 31, 2017
1 parent c68be80 commit 9b077a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions player/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9b077a5

Please sign in to comment.