Browse Source

rtmp: kill the thread if the active connect failed..

pull/2/head
Rémi Duraffort 17 years ago
parent
commit
c0233ecab4
  1. 4
      modules/access/rtmp/access.c

4
modules/access/rtmp/access.c

@ -222,6 +222,10 @@ static int Open( vlc_object_t *p_this )
if( rtmp_connect_active( p_sys->p_thread ) < 0 )
{
msg_Err( p_access, "connect active failed");
/* Kill the running thread */
vlc_object_kill( p_sys->p_thread );
block_FifoWake( p_sys->p_thread->p_fifo_input );
vlc_thread_join( p_sys->p_thread );
goto error2;
}
}

Loading…
Cancel
Save