Commit 3f576cd9 authored by Rafaël Carré's avatar Rafaël Carré

fix a few windows warnings (cast to void** aka LPVOID*)

parent 1fa83e0d
......@@ -754,7 +754,7 @@ static int DxCreateVideoService(vlc_va_dxva2_t *va)
IDirectXVideoDecoderService *vs;
hr = IDirect3DDeviceManager9_GetVideoService(va->devmng, device,
&IID_IDirectXVideoDecoderService,
&vs);
(void**)&vs);
if (FAILED(hr)) {
msg_Err(va->log, "GetVideoService failed");
return VLC_EGENERIC;
......
......@@ -788,7 +788,8 @@ loader:
}
i_err = GetClass( codecs_table[i_codec].p_guid, &IID_IClassFactory,
&cFactory );
(void**)&cFactory );
if( i_err || cFactory == NULL )
{
msg_Dbg( p_this, "no such class object" );
......@@ -797,7 +798,7 @@ loader:
}
i_err = cFactory->vt->CreateInstance( cFactory, 0, &IID_IUnknown,
&cObject );
(void**)&cObject );
cFactory->vt->Release( (IUnknown*)cFactory );
if( i_err || !cObject )
{
......@@ -806,7 +807,7 @@ loader:
return VLC_EGENERIC;
}
i_err = cObject->vt->QueryInterface( cObject, &IID_IMediaObject,
pp_dmo );
(void**)pp_dmo );
cObject->vt->Release( (IUnknown*)cObject );
if( i_err || !*pp_dmo )
{
......@@ -1209,7 +1210,7 @@ static int EncoderSetVideoType( encoder_t *p_enc, IMediaObject *p_dmo )
i_err = p_dmo->vt->QueryInterface( (IUnknown *)p_dmo,
&IID_IWMCodecPrivateData,
&p_privdata );
(void**)&p_privdata );
if( i_err ) break;
i_err = p_privdata->vt->SetPartialOutputType( p_privdata, &dmo_type );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment