Commit 08b960e8 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/dshow/dshow.cpp: fixed initialization bug.

parent 5e909857
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment