mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
client: use g_source_destroy()
We need to use g_source_destroy() because we might have added the source to a different main context than the default one.
This commit is contained in:
parent
5e4757eff6
commit
a697d16c75
1 changed files with 2 additions and 1 deletions
|
@ -1411,7 +1411,8 @@ tunnel_complete (GstRTSPWatch * watch, gpointer user_data)
|
|||
g_object_unref (oclient);
|
||||
|
||||
/* we don't need this watch anymore */
|
||||
g_source_remove (client->watchid);
|
||||
g_source_destroy ((GSource *) client->watch);
|
||||
client->watchid = 0;
|
||||
|
||||
return GST_RTSP_OK;
|
||||
|
||||
|
|
Loading…
Reference in a new issue