Commit c88d0de6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dmo: avoid useless string conversion

parent 527c109b
...@@ -726,23 +726,18 @@ static int LoadDMO( vlc_object_t *p_this, HINSTANCE *p_hmsdmo_dll, ...@@ -726,23 +726,18 @@ static int LoadDMO( vlc_object_t *p_this, HINSTANCE *p_hmsdmo_dll,
while( ( S_OK == p_enum_dmo->vt->Next( p_enum_dmo, 1, &clsid_dmo, while( ( S_OK == p_enum_dmo->vt->Next( p_enum_dmo, 1, &clsid_dmo,
&psz_dmo_name, &i_dummy /* NULL doesn't work */ ) ) ) &psz_dmo_name, &i_dummy /* NULL doesn't work */ ) ) )
{ {
char *psz_temp = FromWide( psz_dmo_name ); msg_Dbg( p_this, "found DMO: %ls", psz_dmo_name );
msg_Dbg( p_this, "found DMO: %s", psz_temp );
CoTaskMemFree( psz_dmo_name ); CoTaskMemFree( psz_dmo_name );
/* Create DMO */ /* Create DMO */
if( CoCreateInstance( &clsid_dmo, NULL, CLSCTX_INPROC, if( CoCreateInstance( &clsid_dmo, NULL, CLSCTX_INPROC,
&IID_IMediaObject, (void **)pp_dmo ) ) &IID_IMediaObject, (void **)pp_dmo ) )
{ {
msg_Warn( p_this, "can't create DMO: %s", psz_temp ); msg_Warn( p_this, "can't create DMO: %ls", psz_dmo_name );
free( psz_temp );
*pp_dmo = 0; *pp_dmo = 0;
} }
else else
{
free( psz_temp );
break; break;
}
} }
p_enum_dmo->vt->Release( (IUnknown *)p_enum_dmo ); p_enum_dmo->vt->Release( (IUnknown *)p_enum_dmo );
......
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