vlc | branch: master | Steve Lhomme <[email protected]> | Wed Sep 18 14:36:38 2019 +0200| [c4a7d26d8ea4763331d37b7ee2d5072a584a788c] | committer: Steve Lhomme
libvlc: set the decoder device to use with external D3D rendering This ensures the external device is used by the D3D modules as the callbacks to get it moved in the decoder device (rather than the display module). This allows decoding with the device of the host and rendering with a compatible device as well. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4a7d26d8ea4763331d37b7ee2d5072a584a788c --- lib/media_player.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/media_player.c b/lib/media_player.c index c4faffd34a..70b470b3b0 100644 --- a/lib/media_player.c +++ b/lib/media_player.c @@ -1088,11 +1088,13 @@ bool libvlc_video_direct3d_set_callbacks(libvlc_media_player_t *mp, { var_SetString ( mp, "vout", "direct3d11" ); var_SetString ( mp, "avcodec-hw", "d3d11va"); + var_SetString ( mp, "dec-dev", "d3d11-device" ); } else if ( engine == libvlc_video_direct3d_engine_d3d9 ) { var_SetString ( mp, "vout", "direct3d9" ); var_SetString ( mp, "avcodec-hw", "dxva2"); + var_SetString ( mp, "dec-dev", "d3d9-device" ); } else return false; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
