vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Thu Feb 13 16:03:47 
2020 +0100| [f2fe1239afacbb886e9eec8a1d77f82a1d767582] | committer: Steve Lhomme

direct3d9: rename the decoder device to "dxva2"

This easier to set by users than "d3d9-device".

It also matches the name better since it can also be used with OpenGL.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2fe1239afacbb886e9eec8a1d77f82a1d767582
---

 lib/media_player.c             | 2 +-
 modules/hw/d3d9/d3d9_filters.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index 19fb876ac5..1b736da12e 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1070,7 +1070,7 @@ bool 
libvlc_video_set_output_callbacks(libvlc_media_player_t *mp,
     else if ( engine == libvlc_video_engine_d3d9 )
     {
         var_SetString ( mp, "vout", "direct3d9" );
-        var_SetString ( mp, "dec-dev", "d3d9-device" );
+        var_SetString ( mp, "dec-dev", "d3d9" );
     }
     else
         return false;
diff --git a/modules/hw/d3d9/d3d9_filters.c b/modules/hw/d3d9/d3d9_filters.c
index abd82c9af2..80106bce5b 100644
--- a/modules/hw/d3d9/d3d9_filters.c
+++ b/modules/hw/d3d9/d3d9_filters.c
@@ -524,5 +524,5 @@ vlc_module_begin()
     add_submodule()
     set_description(N_("Direct3D9"))
     set_callback_dec_device( D3D9OpenDecoderDevice, 10 )
-    add_shortcut ("d3d9-device")
+    add_shortcut ("dxva2")
 vlc_module_end()

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to