[vlc-commits] libvlc: use a union for exclusive video_direct3d_device_setup_t values
Steve Lhomme
git at videolan.org
Mon Feb 10 09:06:59 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 5 13:47:32 2020 +0100| [92bb335f7adae02a5e0f716ad1441d0b3005a212] | committer: Steve Lhomme
libvlc: use a union for exclusive video_direct3d_device_setup_t values
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92bb335f7adae02a5e0f716ad1441d0b3005a212
---
include/vlc/libvlc_media_player.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index f7496829f0..a52bb7143a 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -700,8 +700,10 @@ typedef struct
typedef struct
{
- void *device_context; /** ID3D11DeviceContext* for D3D11, IDirect3D9 * for D3D9 */
- int adapter; /** Adapter to use with the IDirect3D9 for D3D9 */
+ union {
+ void *device_context; /** ID3D11DeviceContext* for D3D11, IDirect3D9 * for D3D9 */
+ int adapter; /** Adapter to use with the IDirect3D9 for D3D9 */
+ };
} libvlc_video_direct3d_device_setup_t;
/** Setup the rendering environment.
More information about the vlc-commits
mailing list