Commit f86d0e6a authored by Rémi Duraffort's avatar Rémi Duraffort

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

(cherry picked from commit c0233eca)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 3080869d
......@@ -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;
}
}
......
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