curlbasesink: cleanup transfer immediately when done

This commit is contained in:
Jonathan Karlsson 2018-12-17 08:07:26 +01:00 committed by Sebastian Dröge
parent f964fb38b6
commit e8ec1c0143

View file

@ -267,7 +267,6 @@ gst_curl_base_sink_finalize (GObject * gobject)
g_thread_join (this->transfer_thread);
}
gst_curl_base_sink_transfer_cleanup (this);
g_cond_clear (&this->transfer_cond->cond);
g_free (this->transfer_cond);
g_free (this->transfer_buf);
@ -1220,6 +1219,8 @@ gst_curl_base_sink_transfer_thread_func (gpointer data)
}
done:
gst_curl_base_sink_transfer_cleanup (sink);
/* extract the error code so the lock does not have to be
* taken when calling the functions below that take the lock
* on their own */