Commit 8299ae68 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: remove "dereferencing type-punned pointer will break strict-aliasing...

Win32: remove "dereferencing type-punned pointer will break strict-aliasing rules" and bring "passing argument ... from incompatible pointer type

At least it compiles, and there is absolutly no way I dig in that code.
parent ea88cefe
......@@ -781,7 +781,7 @@ loader:
}
i_err = GetClass( codecs_table[i_codec].p_guid, &IID_IClassFactory,
(void**)&cFactory );
&cFactory );
if( i_err || cFactory == NULL )
{
msg_Dbg( p_this, "no such class object" );
......@@ -790,7 +790,7 @@ loader:
}
i_err = cFactory->vt->CreateInstance( cFactory, 0, &IID_IUnknown,
(void**)&cObject );
&cObject );
cFactory->vt->Release( (IUnknown*)cFactory );
if( i_err || !cObject )
{
......@@ -799,7 +799,7 @@ loader:
return VLC_EGENERIC;
}
i_err = cObject->vt->QueryInterface( cObject, &IID_IMediaObject,
(void**)pp_dmo );
pp_dmo );
cObject->vt->Release( (IUnknown*)cObject );
if( i_err || !*pp_dmo )
{
......@@ -1200,7 +1200,7 @@ static int EncoderSetVideoType( encoder_t *p_enc, IMediaObject *p_dmo )
i_err = p_dmo->vt->QueryInterface( (IUnknown *)p_dmo,
&IID_IWMCodecPrivateData,
(void **)&p_privdata );
&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