mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
rtspclientsink: Don't leave stale pointer after unref
Fix a warning on shutdown - don't keep a pointer to an alread-unreffed object.
This commit is contained in:
parent
628c613a0a
commit
cc59abc824
1 changed files with 3 additions and 1 deletions
|
@ -1559,8 +1559,10 @@ gst_rtsp_client_sink_cleanup (GstRTSPClientSink * sink)
|
|||
context->stream = NULL;
|
||||
}
|
||||
|
||||
if (context->srtcpparams)
|
||||
if (context->srtcpparams) {
|
||||
gst_caps_unref (context->srtcpparams);
|
||||
context->srtcpparams = NULL;
|
||||
}
|
||||
g_free (context->conninfo.location);
|
||||
context->conninfo.location = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue