diff options
author | Jan Schmidt <jan@centricular.com> | 2016-11-30 14:06:36 +1100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2016-11-30 21:15:12 +1100 |
commit | cc59abc8246749662e28737c0c7ecab289aeb9fc (patch) | |
tree | 7d689b906fade90c4c4dd8829afa3f5e920a4b91 | |
parent | 628c613a0ae8a2c0d49d1944cae6bee82ae38fd0 (diff) |
rtspclientsink: Don't leave stale pointer after unref
Fix a warning on shutdown - don't keep a pointer to an
alread-unreffed object.
-rw-r--r-- | gst/rtsp-sink/gstrtspclientsink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtsp-sink/gstrtspclientsink.c b/gst/rtsp-sink/gstrtspclientsink.c index 88a5964..b2aaec8 100644 --- a/gst/rtsp-sink/gstrtspclientsink.c +++ b/gst/rtsp-sink/gstrtspclientsink.c @@ -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; } |