Skip to content
Snippets Groups Projects
Commit 7cce8e2d authored by Ognyan Tonchev's avatar Ognyan Tonchev Committed by Wim Taymans
Browse files

media: Do not stop thread twice if default_prepare() fails

parent e69241ac
No related branches found
No related tags found
No related merge requests found
......@@ -2197,18 +2197,12 @@ default_prepare (GstRTSPMedia * media, GstRTSPThread * thread)
/* ERRORS */
no_create_rtpbin:
{
/* we are not going to use the giving thread, so stop it. */
if (thread)
gst_rtsp_thread_stop (thread);
GST_ERROR ("no create_rtpbin function");
g_critical ("no create_rtpbin vmethod function set");
return FALSE;
}
no_rtpbin:
{
/* we are not going to use the giving thread, so stop it. */
if (thread)
gst_rtsp_thread_stop (thread);
GST_WARNING ("no rtpbin element");
g_warning ("failed to create element 'rtpbin', check your installation");
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment