When using the ShoutcastTV, vlc sometimes crashes when opening an item
Could be a race condition.
The cause is an invalid pointer being given to input_ItemAddSubItem() OR the pointer can be valid, but the memory it points to have been freed in the meantime.
Anyway, this is not nice
Core was generated by `/home/fun/vlc/bin/vlc --no-media-library --album-art 0 --services-discovery=ShoutcastTV'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7d1b550 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0 0xb7d1b550 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1 0xb7e0d546 in pthread_mutex_lock () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7f38488 in __vlc_object_lock (obj=0x20)
at ../../trunk/include/vlc_threads_funcs.h:124
#3 0xb7eb7add in input_item_subitem_added (p_event=0xae54624c,
user_data=0x828ac30) at ../../trunk/src/playlist/item.c:53
#4 0xb7f33374 in vlc_event_send (p_em=0x828a960, p_event=0xae54624c)
at ../../trunk/src/misc/events.c:197
#5 0xadc55378 in Demux (p_demux=0x85e56dc)
at ../../../../trunk/include/vlc_input.h:164
#6 0xb7ed8570 in MainLoop (p_input=0x85bf434)
at ../../trunk/src/input/input.c:595
#7 0xb7ed942c in Run (p_input=0x85bf434) at ../../trunk/src/input/input.c:499
#8 0xb7d1946b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9 0xb7e0073e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)
#4 0xb7f33374 in vlc_event_send (p_em=0x828a960, p_event=0xae54624c)
at ../../trunk/src/misc/events.c:197
0xae54624c not being a valid pointer => crash