mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
client: small cleanup
This commit is contained in:
parent
fc0f176a17
commit
18bb9ffa6b
1 changed files with 4 additions and 4 deletions
|
@ -1909,21 +1909,21 @@ void
|
|||
gst_rtsp_client_set_send_func (GstRTSPClient * client,
|
||||
GstRTSPClientSendFunc func, gpointer user_data, GDestroyNotify notify)
|
||||
{
|
||||
GDestroyNotify old_func;
|
||||
GDestroyNotify old_notify;
|
||||
gpointer old_data;
|
||||
|
||||
g_return_if_fail (GST_IS_RTSP_CLIENT (client));
|
||||
|
||||
g_mutex_lock (&client->lock);
|
||||
client->send_func = func;
|
||||
old_func = client->send_notify;
|
||||
old_notify = client->send_notify;
|
||||
old_data = client->send_data;
|
||||
client->send_notify = notify;
|
||||
client->send_data = user_data;
|
||||
g_mutex_unlock (&client->lock);
|
||||
|
||||
if (old_func)
|
||||
old_func (old_data);
|
||||
if (old_notify)
|
||||
old_notify (old_data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue