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:
Jan Schmidt 2016-11-30 14:06:36 +11:00
parent 628c613a0a
commit cc59abc824

View file

@ -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;
}