Commit d4d07818 authored by François Grisez's avatar François Grisez

Fix "Call/Call with mkv file player" tester when opus is not supported by mediastreamer2

parent f03bb184
......@@ -2104,7 +2104,12 @@ static void call_with_mkv_file_player(void) {
player=linphone_call_get_player(linphone_core_get_current_call(marie->lc));
CU_ASSERT_PTR_NOT_NULL(player);
if (player){
CU_ASSERT_TRUE(linphone_player_open(player,hellomkv,on_eof,marie)==0);
int res = linphone_player_open(player,hellomkv,on_eof,marie);
if(!ms_filter_codec_supported("opus")) {
CU_ASSERT_EQUAL(res, -1);
goto end;
}
CU_ASSERT_EQUAL(res, 0);
CU_ASSERT_TRUE(linphone_player_start(player)==0);
CU_ASSERT_TRUE(wait_for_until(pauline->lc,marie->lc,&marie->stat.number_of_player_eof,1,12000));
linphone_player_close(player);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment