[vlc-commits] vlc input control: fixed execution on Mac OS
Felix Paul Kühne
git at videolan.org
Tue Jul 12 09:39:16 CEST 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jul 12 09:39:06 2011 +0200| [f3426da7c5fa78cbc603ed8465f307514b0924f2] | committer: Felix Paul Kühne
vlc input control: fixed execution on Mac OS
thanks for the explanation to courmisch
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3426da7c5fa78cbc603ed8465f307514b0924f2
---
src/input/item.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/item.c b/src/input/item.c
index 78162e8..fe37d92 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -817,6 +817,7 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
p_input->i_id = vlc_atomic_inc(&last_input_id);
vlc_gc_init( p_input, input_item_Destroy );
+ vlc_mutex_init( &p_input->lock );
p_input->psz_name = NULL;
if( psz_name )
@@ -852,7 +853,6 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
vlc_event_manager_register_event_type( p_em, vlc_InputItemInfoChanged );
vlc_event_manager_register_event_type( p_em, vlc_InputItemErrorWhenReadingChanged );
- vlc_mutex_init( &p_input->lock );
if( type != ITEM_TYPE_UNKNOWN )
p_input->i_type = type;
p_input->b_fixed_name = false;
More information about the vlc-commits
mailing list