mirror of
https://github.com/videolan/vlc.git
synced 2024-11-25 02:44:30 +08:00
- fixed a few return codes from APIs
This commit is contained in:
parent
63851f2114
commit
e879989e3a
@ -40,7 +40,7 @@ HRESULT VLCControl::getTypeInfo(void)
|
||||
{
|
||||
ITypeLib *p_typelib;
|
||||
|
||||
HRESULT hr = _p_instance->getTypeLib(LOCALE_USER_DEFAULT, &p_typelib);
|
||||
hr = _p_instance->getTypeLib(LOCALE_USER_DEFAULT, &p_typelib);
|
||||
if( SUCCEEDED(hr) )
|
||||
{
|
||||
hr = p_typelib->GetTypeInfoOfGuid(IID_IVLCControl, &_p_typeinfo);
|
||||
@ -186,7 +186,7 @@ STDMETHODIMP VLCControl::get_Position(float *position)
|
||||
if( _p_instance->isRunning() )
|
||||
{
|
||||
int i_vlc;
|
||||
HRESULT result = _p_instance->getVLCObject(&i_vlc);
|
||||
result = _p_instance->getVLCObject(&i_vlc);
|
||||
if( SUCCEEDED(result) )
|
||||
{
|
||||
*position = VLC_PositionGet(i_vlc);
|
||||
@ -203,7 +203,7 @@ STDMETHODIMP VLCControl::put_Position(float position)
|
||||
if( _p_instance->isRunning() )
|
||||
{
|
||||
int i_vlc;
|
||||
HRESULT result = _p_instance->getVLCObject(&i_vlc);
|
||||
result = _p_instance->getVLCObject(&i_vlc);
|
||||
if( SUCCEEDED(result) )
|
||||
{
|
||||
VLC_PositionSet(i_vlc, position);
|
||||
@ -221,7 +221,7 @@ STDMETHODIMP VLCControl::get_Time(int *seconds)
|
||||
if( _p_instance->isRunning() )
|
||||
{
|
||||
int i_vlc;
|
||||
HRESULT result = _p_instance->getVLCObject(&i_vlc);
|
||||
result = _p_instance->getVLCObject(&i_vlc);
|
||||
if( SUCCEEDED(result) )
|
||||
{
|
||||
*seconds = VLC_TimeGet(i_vlc);
|
||||
|
Loading…
Reference in New Issue
Block a user