Commit 79b8c557 authored by François Grisez's avatar François Grisez
Browse files

Fix build when video support is disabled

parent 369e6930
......@@ -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;
}
......
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