mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
tcpclientsink: ensure proper cleanup upon startup error
This commit is contained in:
parent
ecb7156822
commit
56602aa8fc
1 changed files with 2 additions and 0 deletions
|
@ -367,6 +367,8 @@ connect_failed:
|
|||
}
|
||||
g_clear_error (&err);
|
||||
g_object_unref (saddr);
|
||||
/* pretend we opened ok for proper cleanup to happen */
|
||||
GST_OBJECT_FLAG_SET (this, GST_TCP_CLIENT_SINK_OPEN);
|
||||
gst_tcp_client_sink_stop (GST_BASE_SINK (this));
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue