From: Gildas Bazin Date: Wed, 3 Nov 2004 11:56:16 +0000 (+0000) Subject: * modules/access/dshow/dshow.cpp: fixed initialization bug. X-Git-Tag: 0.8.1~94 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=08b960e8a57877815f51062c668eb82683b7b9b7;p=vlc * modules/access/dshow/dshow.cpp: fixed initialization bug. --- diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp index c08dde0d5a..257921f03e 100644 --- a/modules/access/dshow/dshow.cpp +++ b/modules/access/dshow/dshow.cpp @@ -315,6 +315,9 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys, p_sys->p_capture_graph_builder2 = NULL; p_sys->p_control = NULL; + vlc_mutex_init( p_this, &p_sys->lock ); + vlc_cond_init( p_this, &p_sys->wait ); + /* Build directshow graph */ CreateDirectShowGraph( p_sys ); @@ -413,8 +416,6 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys, /* Initialize some data */ p_sys->i_current_stream = 0; - vlc_mutex_init( p_this, &p_sys->lock ); - vlc_cond_init( p_this, &p_sys->wait ); if( !p_sys->i_streams ) return VLC_EGENERIC;