Skip to content
Commits on Source (2)
......@@ -386,7 +386,7 @@ HRESULT VLCPlugin::onInit(void)
_bstr_mrl = NULL;
_b_visible = TRUE;
_b_mute = FALSE;
_i_volume = 50;
_i_volume = 100;
_i_time = 0;
_i_backcolor = 0;
// set default/preferred size (320x240) pixels in HIMETRIC
......
......@@ -1093,8 +1093,11 @@ STDMETHODIMP VLCVideo::get_aspectRatio(BSTR* aspect)
STDMETHODIMP VLCVideo::put_aspectRatio(BSTR aspect)
{
if( NULL == aspect )
return E_POINTER;
if( 0 == SysStringLen(aspect) )
{
_plug->get_player().get_mp().setAspectRatio( "" );
return S_OK;
}
char *psz_aspect = CStrFromBSTR(CP_UTF8, aspect);
if( !psz_aspect )
......@@ -1136,11 +1139,11 @@ STDMETHODIMP VLCVideo::get_crop(BSTR* geometry)
STDMETHODIMP VLCVideo::put_crop(BSTR geometry)
{
if( NULL == geometry )
return E_POINTER;
if( 0 == SysStringLen(geometry) )
return E_INVALIDARG;
{
_plug->get_player().get_mp().setCropGeometry( "" );
return S_OK;
}
char *psz_geometry = CStrFromBSTR(CP_UTF8, geometry);
if( !psz_geometry )
......