]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore.c
Add linphone_core_get_camera_sensor_rotation().
[linphone] / coreapi / linphonecore.c
index f0963f904f2e87233e48091e7a9687b1eba01b40..202519d76358fdd346be84d3c1274a1263502300 100644 (file)
@@ -4744,6 +4744,16 @@ void linphone_core_set_device_rotation(LinphoneCore *lc, int rotation) {
 #endif
 }
 
+int linphone_core_get_camera_sensor_rotation(LinphoneCore *lc) {
+#ifdef VIDEO_ENABLED
+       LinphoneCall *call = linphone_core_get_current_call(lc);
+       if ((call != NULL) && (call->videostream != NULL)) {
+               return video_stream_get_camera_sensor_rotation(call->videostream);
+       }
+#endif
+       return -1;
+}
+
 static MSVideoSizeDef supported_resolutions[]={
 #ifdef ENABLE_HD
        {       {MS_VIDEO_SIZE_1080P_W,MS_VIDEO_SIZE_1080P_H}   ,       "1080p" },