diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 417751776..0da7ef08e 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -3498,7 +3498,12 @@ void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long void linphone_core_use_preview_window(LinphoneCore *lc, bool_t yesno){ lc->use_preview_window=yesno; } - +/** + *returns current device orientation + */ +int linphone_core_get_device_rotation(LinphoneCore *lc ) { + return lc->device_rotation; +} /** * Tells the core the device current orientation. This can be used by capture filters * on mobile devices to select between portrait/landscape mode and to produce properly diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 21335bcfe..5da42019d 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -934,6 +934,7 @@ unsigned long linphone_core_get_native_preview_window_id(const LinphoneCore *lc) void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long id); void linphone_core_use_preview_window(LinphoneCore *lc, bool_t yesno); +int linphone_core_get_device_rotation(LinphoneCore *lc ); void linphone_core_set_device_rotation(LinphoneCore *lc, int rotation); /*play/record support: use files instead of soundcard*/ diff --git a/mediastreamer2 b/mediastreamer2 index 5ee91bbaf..4ae090314 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 5ee91bbafef99fea6e56a31714af4eceaf0d6553 +Subproject commit 4ae0903143af9ab2d149909e8ac66ca600119e4a