mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Fix build with disabled video.
This commit is contained in:
parent
db1c043cd0
commit
87cfca94b5
1 changed files with 1 additions and 2 deletions
|
|
@ -5245,7 +5245,6 @@ int linphone_call_update(LinphoneCall *call, const LinphoneCallParams *params) {
|
|||
LinphoneCallState nextstate;
|
||||
LinphoneCallState initial_state = call->state;
|
||||
const LinphoneCallParams *current_params;
|
||||
LinphoneCore *lc;
|
||||
|
||||
#if defined(VIDEO_ENABLED) && defined(BUILD_UPNP)
|
||||
bool_t has_video = FALSE;
|
||||
|
|
@ -5277,7 +5276,6 @@ int linphone_call_update(LinphoneCall *call, const LinphoneCallParams *params) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
lc = linphone_call_get_core(call);
|
||||
current_params = linphone_call_get_current_params(call);
|
||||
if ((current_params != NULL) && (current_params == params)) {
|
||||
ms_warning("linphone_call_update() is given the current params of the call, this probably not what you intend to do!");
|
||||
|
|
@ -5329,6 +5327,7 @@ int linphone_call_update(LinphoneCall *call, const LinphoneCallParams *params) {
|
|||
}
|
||||
} else {
|
||||
#ifdef VIDEO_ENABLED
|
||||
LinphoneCore *lc = linphone_call_get_core(call);
|
||||
if ((call->videostream != NULL) && (call->state == LinphoneCallStreamsRunning)) {
|
||||
video_stream_set_sent_video_size(call->videostream, linphone_core_get_preferred_video_size(lc));
|
||||
video_stream_set_fps(call->videostream, linphone_core_get_preferred_framerate(lc));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue