From 8d442bf774e0beb98d59d34e00c7b78f052eb8ee Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 19 Aug 2014 12:17:00 +0200 Subject: [PATCH] Fix bug 0001406: Missing crypto keys when adding video in an SAVP call. --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 273990742..6e652c477 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -313,7 +313,7 @@ static void setup_encryption_keys(LinphoneCall *call, SalMediaDescription *md){ for(i=0; inb_streams; i++) { if (!sal_stream_description_active(&md->streams[i])) continue; if (sal_stream_description_has_srtp(&md->streams[i]) == TRUE) { - if (keep_srtp_keys && old_md && sal_stream_description_has_srtp(&old_md->streams[i]) == TRUE){ + if (keep_srtp_keys && old_md && (sal_stream_description_active(&old_md->streams[i]) == TRUE) && (sal_stream_description_has_srtp(&old_md->streams[i]) == TRUE)) { int j; ms_message("Keeping same crypto keys."); for(j=0;j