Commit a3c80a5c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

libvlc_audio_*: remove useless exception parameters

parent f4d0149f
......@@ -504,7 +504,7 @@ void VLCPlugin::initVLC()
libvlc_audio_set_volume(_p_libvlc, _i_volume, NULL);
if( _b_mute )
{
libvlc_audio_set_mute(_p_libvlc, TRUE, NULL);
libvlc_audio_set_mute(_p_libvlc, TRUE);
}
// initial playlist item
......
......@@ -349,13 +349,7 @@ STDMETHODIMP VLCControl::toggleMute(void)
libvlc_instance_t* p_libvlc;
HRESULT result = _p_instance->getVLC(&p_libvlc);
if( SUCCEEDED(result) )
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_audio_toggle_mute(p_libvlc, &ex);
result = exception_bridge(&ex);
}
libvlc_audio_toggle_mute(p_libvlc);
return result;
};
......
......@@ -148,14 +148,8 @@ STDMETHODIMP VLCAudio::get_mute(VARIANT_BOOL* mute)
libvlc_instance_t* p_libvlc;
HRESULT hr = _p_instance->getVLC(&p_libvlc);
if( SUCCEEDED(hr) )
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
*mute = libvlc_audio_get_mute(p_libvlc, &ex) ?
*mute = libvlc_audio_get_mute(p_libvlc) ?
VARIANT_TRUE : VARIANT_FALSE;
hr = exception_bridge(&ex);
}
return hr;
};
......@@ -164,13 +158,7 @@ STDMETHODIMP VLCAudio::put_mute(VARIANT_BOOL mute)
libvlc_instance_t* p_libvlc;
HRESULT hr = _p_instance->getVLC(&p_libvlc);
if( SUCCEEDED(hr) )
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_audio_set_mute(p_libvlc, VARIANT_FALSE != mute, &ex);
hr = exception_bridge(&ex);
}
libvlc_audio_set_mute(p_libvlc, VARIANT_FALSE != mute);
return hr;
};
......@@ -182,13 +170,7 @@ STDMETHODIMP VLCAudio::get_volume(long* volume)
libvlc_instance_t* p_libvlc;
HRESULT hr = _p_instance->getVLC(&p_libvlc);
if( SUCCEEDED(hr) )
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
*volume = libvlc_audio_get_volume(p_libvlc, &ex);
hr = exception_bridge(&ex);
}
*volume = libvlc_audio_get_volume(p_libvlc);
return hr;
};
......@@ -349,13 +331,7 @@ STDMETHODIMP VLCAudio::toggleMute()
libvlc_instance_t* p_libvlc;
HRESULT hr = _p_instance->getVLC(&p_libvlc);
if( SUCCEEDED(hr) )
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_audio_toggle_mute(p_libvlc, &ex);
hr = exception_bridge(&ex);
}
libvlc_audio_toggle_mute(p_libvlc);
return hr;
};
......
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