if( !p_sys->p_thread->metadata_received )
{
/* Wait until enough data is received for extracting metadata */
+#warning This is not thread-safe (because block_FifoCount() is not)!
if( block_FifoCount( p_sys->p_thread->p_fifo_input ) < 10 )
{
+#warning This is wrong!
msleep(100000);
continue;
}
/* Sometimes server close connection too soon */
if( p_thread->result_connect )
{
+#warning There must be a bug here!
vlc_mutex_lock( &p_thread->lock );
vlc_cond_signal( &p_thread->wait );
vlc_mutex_unlock( &p_thread->lock );
msg_Dbg( p_thread, "key: %s value: %s", string, string2 );
if( strcmp( "code", string ) == 0 )
{
+#warning Locking bugs here.
if( strcmp( "NetConnection.Connect.Success", string2 ) == 0 )
{
p_thread->result_connect = 0;
else
{
/* Sometimes server close connection too soon */
+#warning Locking bug here.
if( p_thread->result_connect )
{
vlc_mutex_lock( &p_thread->lock );