summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-07-02 16:04:53 +0200
committerWim Taymans <wtaymans@redhat.com>2014-07-02 16:04:53 +0200
commit99f670d8bcecc5286ceaeca8a3fb925d746b21ac (patch)
treeb247420901d6c3d88539d6c91545114e0449db09
parent72a57e792f76ae2ade17849a9672014b3bf951fc (diff)
rtsp: fix for MIKEY api change
-rw-r--r--gst/rtsp-server/rtsp-client.c4
-rw-r--r--gst/rtsp-server/rtsp-sdp.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index c60ba0a..47c9657 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -1659,7 +1659,7 @@ handle_mikey_data (GstRTSPClient * client, GstRTSPContext * ctx,
gst_rtsp_stream_update_crypto (ctx->stream, map->ssrc, caps);
gst_caps_unref (caps);
}
- gst_mikey_message_free (msg);
+ gst_mikey_message_unref (msg);
return TRUE;
@@ -1691,7 +1691,7 @@ unsupported_encryption:
}
cleanup_message:
{
- gst_mikey_message_free (msg);
+ gst_mikey_message_unref (msg);
return FALSE;
}
}
diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c
index 5734278..07aea90 100644
--- a/gst/rtsp-server/rtsp-sdp.c
+++ b/gst/rtsp-server/rtsp-sdp.c
@@ -296,7 +296,7 @@ make_media (GstSDPMessage * sdp, GstSDPInfo * info, GstRTSPMedia * media,
/* now serialize this to bytes */
bytes = gst_mikey_message_to_bytes (msg, NULL, NULL);
- gst_mikey_message_free (msg);
+ gst_mikey_message_unref (msg);
/* and make it into base64 */
data = g_bytes_get_data (bytes, &size);
base64 = g_base64_encode (data, size);