diff --git a/tester/mediastreamer2_audio_stream_tester.c b/tester/mediastreamer2_audio_stream_tester.c index 6ae4a4061..7e86d6fe6 100644 --- a/tester/mediastreamer2_audio_stream_tester.c +++ b/tester/mediastreamer2_audio_stream_tester.c @@ -257,7 +257,6 @@ static void encrypted_audio_stream_base( bool_t change_ssrc, stats_t margaux_stats; int dummy=0; int number_of_dropped_packets=0; - ms_media_stream_sessions_set_encryption_mandatory(&marielle->ms.sessions,encryption_mandatory); const char *aes_128_bits_send_key = "d0RmdmcmVCspeEc3QGZiNWpVLFJhQX1cfHAwJSoj"; const char *aes_128_bits_send_key_2 = "eCYF4nYyCvmCpFWjUeDaxI2GWp2BzCRlIPfg52Te"; @@ -271,6 +270,8 @@ static void encrypted_audio_stream_base( bool_t change_ssrc, const char *send_key_2 ; const char *recv_key ; + ms_media_stream_sessions_set_encryption_mandatory(&marielle->ms.sessions,encryption_mandatory); + switch (suite) { case MS_AES_128_SHA1_32: case MS_AES_128_SHA1_80: @@ -287,7 +288,8 @@ static void encrypted_audio_stream_base( bool_t change_ssrc, break; default: - BC_ASSERT_FATAL("Unsupported suite"); + BC_FAIL("Unsupported suite"); + BC_ASSERT_FATAL(FALSE); break; }