[vlc-devel] commit: Add some sane default values. (Jean-Paul Saman )
git version control
git at videolan.org
Sat Jun 14 11:05:46 CEST 2008
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue Jun 10 10:55:32 2008 +0200| [6a0f2d4686439e3691462abfd602172b023e9272]
Add some sane default values.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a0f2d4686439e3691462abfd602172b023e9272
---
projects/activex/vlccontrol2.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/projects/activex/vlccontrol2.cpp b/projects/activex/vlccontrol2.cpp
index 26548c0..499986d 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) )
More information about the vlc-devel
mailing list