summaryrefslogtreecommitdiffstats
path: root/video/decode/vd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-29 22:47:27 +0100
committerwm4 <wm4@nowhere>2016-01-29 22:47:27 +0100
commita8dd0abb6d72e271384b2dde3026bb545a12b730 (patch)
treec599c25af3fed63cd48697aa93bc4b4d5fc720b4 /video/decode/vd.h
parent942a6729fa92c1b4ac4ab7b3feeb19eb3c17e7e9 (diff)
downloadmpv-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.h1
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 */