Skip to content

Commit

Permalink
direct3d11: rename the decoder device to "d3d11"
Browse files Browse the repository at this point in the history
This easier to set by users than "d3d11-device".
  • Loading branch information
robUx4 committed Feb 14, 2020
1 parent 84e470e commit ef6e16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/media_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ bool libvlc_video_set_output_callbacks(libvlc_media_player_t *mp,
else if ( engine == libvlc_video_engine_d3d11 )
{
var_SetString ( mp, "vout", "direct3d11" );
var_SetString ( mp, "dec-dev", "d3d11-device" );
var_SetString ( mp, "dec-dev", "d3d11" );
}
else if ( engine == libvlc_video_engine_d3d9 )
{
Expand Down
2 changes: 1 addition & 1 deletion modules/hw/d3d11/d3d11_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,6 @@ vlc_module_begin()
/* LEGACY, the d3dcontext and swapchain were given by the host app */
add_integer("winrt-d3dcontext", 0x0, NULL, NULL, true) /* ID3D11DeviceContext* */
#endif /* VLC_WINSTORE_APP */
add_shortcut ("d3d11-device")
add_shortcut ("d3d11")

vlc_module_end()

0 comments on commit ef6e16c

Please sign in to comment.