summaryrefslogtreecommitdiff
path: root/pjmedia/src/pjmedia-videodev/ios_dev.m
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2015-08-21 06:46:32 +0000
committerLiong Sauw Ming <ming@teluu.com>2015-08-21 06:46:32 +0000
commit97c47c4e1e14582218162e7cb8ed5185bd441357 (patch)
treefe0484a7af6ae60b4046dace0c395b64c923cc88 /pjmedia/src/pjmedia-videodev/ios_dev.m
parent8c6f78c4426aae98c9d72b14afd010a3458a662d (diff)
Fixed #1880: Incorrect orientation after switching video capture or when using back camera
Included in this fix: * Change the spec & doc of pjmedia_orient enumeration * Change iOS sample app to rotate all video devices upon orientation change event. * Set orientation as well when fast switching cameras (for iOS and Android) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5166 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-videodev/ios_dev.m')
-rw-r--r--pjmedia/src/pjmedia-videodev/ios_dev.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-videodev/ios_dev.m b/pjmedia/src/pjmedia-videodev/ios_dev.m
index 4ae06e70..c9b533e9 100644
--- a/pjmedia/src/pjmedia-videodev/ios_dev.m
+++ b/pjmedia/src/pjmedia-videodev/ios_dev.m
@@ -962,6 +962,10 @@ static pj_status_t ios_stream_set_cap(pjmedia_vid_dev_stream *s,
strm->dev_input = new_dev_input;
strm->param.cap_id = p->target_id;
+ /* Set the orientation as well */
+ ios_stream_set_cap(s, PJMEDIA_VID_DEV_CAP_ORIENTATION,
+ &strm->param.orient);
+
return PJ_SUCCESS;
}