mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
curlbasesink: cleanup transfer immediately when done
This commit is contained in:
parent
f964fb38b6
commit
e8ec1c0143
1 changed files with 2 additions and 1 deletions
|
@ -267,7 +267,6 @@ gst_curl_base_sink_finalize (GObject * gobject)
|
||||||
g_thread_join (this->transfer_thread);
|
g_thread_join (this->transfer_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_curl_base_sink_transfer_cleanup (this);
|
|
||||||
g_cond_clear (&this->transfer_cond->cond);
|
g_cond_clear (&this->transfer_cond->cond);
|
||||||
g_free (this->transfer_cond);
|
g_free (this->transfer_cond);
|
||||||
g_free (this->transfer_buf);
|
g_free (this->transfer_buf);
|
||||||
|
@ -1220,6 +1219,8 @@ gst_curl_base_sink_transfer_thread_func (gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
gst_curl_base_sink_transfer_cleanup (sink);
|
||||||
|
|
||||||
/* extract the error code so the lock does not have to be
|
/* extract the error code so the lock does not have to be
|
||||||
* taken when calling the functions below that take the lock
|
* taken when calling the functions below that take the lock
|
||||||
* on their own */
|
* on their own */
|
||||||
|
|
Loading…
Reference in a new issue