From: Jean-Paul Saman Date: Tue, 10 Jun 2008 08:55:32 +0000 (+0200) Subject: Add some sane default values. X-Git-Tag: 0.9.0-test0~134 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6a0f2d4686439e3691462abfd602172b023e9272;p=vlc Add some sane default values. --- diff --git a/projects/activex/vlccontrol2.cpp b/projects/activex/vlccontrol2.cpp index 26548c0ac0..499986d954 100644 --- a/projects/activex/vlccontrol2.cpp +++ b/projects/activex/vlccontrol2.cpp @@ -404,6 +404,7 @@ STDMETHODIMP VLCInput::get_length(double* length) { if( NULL == length ) return E_POINTER; + *length = 0; libvlc_instance_t* p_libvlc; HRESULT hr = _p_instance->getVLC(&p_libvlc); @@ -434,6 +435,7 @@ STDMETHODIMP VLCInput::get_position(double* position) if( NULL == position ) return E_POINTER; + *position = 0.0f; libvlc_instance_t* p_libvlc; HRESULT hr = _p_instance->getVLC(&p_libvlc); if( SUCCEEDED(hr) ) @@ -1630,6 +1632,7 @@ STDMETHODIMP VLCPlaylist::get_itemCount(long* count) if( NULL == count ) return E_POINTER; + *count = 0; libvlc_instance_t* p_libvlc; HRESULT hr = _p_instance->getVLC(&p_libvlc); if( SUCCEEDED(hr) )