[vlc-devel] [PATCH 2/7] decoder: let the decoder device know it's force created
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jun 26 15:48:59 CEST 2019
When selecting between D3D11 and D3D9 on Windows we need to know if the decoder
device may be optional or not (with external rendering it's not).
---
src/input/decoder_helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
index 35a291921d..7fd7120759 100644
--- a/src/input/decoder_helpers.c
+++ b/src/input/decoder_helpers.c
@@ -106,6 +106,7 @@ static int decoder_device_Open(void *func, bool forced, va_list ap)
vlc_decoder_device *device = va_arg(ap, vlc_decoder_device *);
vout_window_t *window = va_arg(ap, vout_window_t *);
vlc_fourcc_t chroma = va_arg(ap, vlc_fourcc_t);
+ device->obj.force = forced;
int ret = open(device, window, chroma);
if (ret != VLC_SUCCESS)
{
@@ -117,7 +118,6 @@ static int decoder_device_Open(void *func, bool forced, va_list ap)
{
assert(device->type != VLC_DECODER_DEVICE_NONE);
}
- (void) forced;
return ret;
}
--
2.17.1
More information about the vlc-devel
mailing list