From 6a0f2d4686439e3691462abfd602172b023e9272 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Tue, 10 Jun 2008 10:55:32 +0200 Subject: [PATCH] Add some sane default values. --- projects/activex/vlccontrol2.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) ) -- 2.39.2