rtsp: fix for MIKEY api change

This commit is contained in:
Wim Taymans 2014-07-02 16:04:53 +02:00
parent 72a57e792f
commit 99f670d8bc
2 changed files with 3 additions and 3 deletions

View file

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

View file

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