mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
save video capture/display while setted
This commit is contained in:
parent
eaf16b1784
commit
bdaa5ae91a
2 changed files with 4 additions and 3 deletions
|
|
@ -232,6 +232,4 @@ clean-local:
|
|||
discovery:
|
||||
touch specs.cpp
|
||||
$(CC) --include $(top_builddir)/config.h \
|
||||
--include $(top_builddir)/mediastreamer2/mediastreamer-config.h \
|
||||
--include $(top_builddir)/oRTP/ortp-config.h \
|
||||
$(TUNNEL_CFLAGS) $(CFLAGS) $(MEDIASTREAMER2_CFLAGS) $(ORTP_CFLAGS) -E -P -v -dD specs.cpp
|
||||
|
|
|
|||
|
|
@ -3840,7 +3840,10 @@ void linphone_core_enable_video(LinphoneCore *lc, bool_t vcap_enabled, bool_t di
|
|||
#endif
|
||||
lc->video_conf.capture=vcap_enabled;
|
||||
lc->video_conf.display=display_enabled;
|
||||
|
||||
if (linphone_core_ready(lc)){
|
||||
lp_config_set_int(lc->config,"video","display",lc->video_conf.display);
|
||||
lp_config_set_int(lc->config,"video","capture",lc->video_conf.capture);
|
||||
}
|
||||
/* need to re-apply network bandwidth settings*/
|
||||
linphone_core_set_download_bandwidth(lc,
|
||||
linphone_core_get_download_bandwidth(lc));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue