Commit ef137480 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fix crash in bb10 capture filter when starting call with a device orientation...

Fix crash in bb10 capture filter when starting call with a device orientation different than the default one
parent 97c7b130
......@@ -416,6 +416,11 @@ static int bb10capture_set_device_rotation(MSFilter *f, void *arg) {
ms_filter_lock(f);
d->rotation = *((int*)arg);
int rotation = d->rotation;
if (!d->is_front_cam) {
rotation = 360 - d->rotation;
}
camera_set_vf_property(d->cam_handle, CAMERA_IMGPROP_ROTATION, rotation);
ms_debug("[bb10_capture] device rotation changed: %i", d->rotation);
ms_filter_unlock(f);
......
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