From 56602aa8fcca85d0c02a0fd4f503f9dcb8cd863d Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 24 Apr 2012 16:34:33 +0200 Subject: [PATCH] tcpclientsink: ensure proper cleanup upon startup error --- gst/tcp/gsttcpclientsink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/tcp/gsttcpclientsink.c b/gst/tcp/gsttcpclientsink.c index 0acb43b411..5ec8416a12 100644 --- a/gst/tcp/gsttcpclientsink.c +++ b/gst/tcp/gsttcpclientsink.c @@ -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; }