mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Do not set video session wether the H264 payload connot be found
This commit is contained in:
parent
f056bb1085
commit
4525fe436c
1 changed files with 12 additions and 8 deletions
|
|
@ -2694,6 +2694,7 @@ static void recording_call() {
|
||||||
linphone_call_params_set_record_file(marieParams, filepath);
|
linphone_call_params_set_record_file(marieParams, filepath);
|
||||||
|
|
||||||
#ifdef VIDEO_ENABLED
|
#ifdef VIDEO_ENABLED
|
||||||
|
if((linphone_core_find_payload_type(marie->lc, "H264", -1, -1) != NULL) && (linphone_core_find_payload_type(pauline->lc, "H264", -1, -1) != NULL)) {
|
||||||
linphone_core_enable_video_display(marie->lc, TRUE);
|
linphone_core_enable_video_display(marie->lc, TRUE);
|
||||||
linphone_core_enable_video_display(pauline->lc, FALSE);
|
linphone_core_enable_video_display(pauline->lc, FALSE);
|
||||||
linphone_core_enable_video_capture(marie->lc, TRUE);
|
linphone_core_enable_video_capture(marie->lc, TRUE);
|
||||||
|
|
@ -2704,6 +2705,9 @@ static void recording_call() {
|
||||||
|
|
||||||
disable_all_video_codecs_except_one(marie->lc, "H264");
|
disable_all_video_codecs_except_one(marie->lc, "H264");
|
||||||
disable_all_video_codecs_except_one(pauline->lc, "H264");
|
disable_all_video_codecs_except_one(pauline->lc, "H264");
|
||||||
|
} else {
|
||||||
|
ms_warning("call_recording(): the H264 payload has not been found. Only sound will be recorded");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CU_ASSERT_TRUE(call_with_params(marie, pauline, marieParams, paulineParams));
|
CU_ASSERT_TRUE(call_with_params(marie, pauline, marieParams, paulineParams));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue