mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
media: Do not stop thread twice if default_prepare() fails
This commit is contained in:
parent
e69241ac97
commit
7cce8e2dde
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue