diff options
author | wm4 <wm4@nowhere> | 2016-01-29 22:47:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-29 22:47:27 +0100 |
commit | a8dd0abb6d72e271384b2dde3026bb545a12b730 (patch) | |
tree | c599c25af3fed63cd48697aa93bc4b4d5fc720b4 /video/decode/vd.h | |
parent | 942a6729fa92c1b4ac4ab7b3feeb19eb3c17e7e9 (diff) | |
download | mpv-a8dd0abb6d72e271384b2dde3026bb545a12b730.tar.bz2 mpv-a8dd0abb6d72e271384b2dde3026bb545a12b730.tar.xz |
vd_lavc: allow switching between hw/sw decoding any time
We just need to provide an entrypoint for it, and move the main init
code to a separate function. This gets rid of the messy video chain full
reinit in command.c, which completely destroyed and recreated the video
state for the purpose of mid-stream hw/sw switching.
Diffstat (limited to 'video/decode/vd.h')
-rw-r--r-- | video/decode/vd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/vd.h b/video/decode/vd.h index 6f5016ac37..c2ce0bbde8 100644 --- a/video/decode/vd.h +++ b/video/decode/vd.h @@ -45,6 +45,7 @@ enum vd_ctrl { VDCTRL_QUERY_UNSEEN_FRAMES, // current decoder lag VDCTRL_FORCE_HWDEC_FALLBACK, // force software decoding fallback VDCTRL_GET_HWDEC, + VDCTRL_REINIT, }; #endif /* MPLAYER_VD_H */ |