mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-02 20:16:25 +00:00
Fix build when video support is disabled
This commit is contained in:
parent
369e6930d0
commit
79b8c557e5
1 changed files with 4 additions and 0 deletions
|
|
@ -5650,9 +5650,13 @@ MSVideoSize linphone_core_get_preview_video_size(const LinphoneCore *lc){
|
|||
**/
|
||||
MSVideoSize linphone_core_get_current_preview_video_size(const LinphoneCore *lc){
|
||||
MSVideoSize ret={0};
|
||||
#ifndef VIDEO_ENABLED
|
||||
ms_error("linphone_core_get_current_preview_video_size() fail. Support for video is disabled");
|
||||
#else
|
||||
if (lc->previewstream){
|
||||
ret=video_preview_get_current_size(lc->previewstream);
|
||||
}
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue