diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-10-03 09:43:10 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-10-03 09:43:10 +0000 |
commit | 0d787ff15965f4a4ea8c24aaaa64f6541a1cd876 (patch) | |
tree | c708d1fad1aea8bd487089887655790778036a31 /pjmedia/src/pjmedia-videodev | |
parent | f3f2c4b1e8ec8416fce15fc5db9ea6c6059f307d (diff) |
Added PJMEDIA_VID_DEV_CAP_SWITCH capability to allow fast switching to another device while the video device stream is running. Currently not implemented on any devices.(This closes #1362)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3781 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-videodev')
-rw-r--r-- | pjmedia/src/pjmedia-videodev/videodev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-videodev/videodev.c b/pjmedia/src/pjmedia-videodev/videodev.c index 6921f67b..6fc65966 100644 --- a/pjmedia/src/pjmedia-videodev/videodev.c +++ b/pjmedia/src/pjmedia-videodev/videodev.c @@ -45,7 +45,8 @@ static struct cap_info DEFINE_CAP("position", "Renderer position"), DEFINE_CAP("hide", "Renderer hide"), DEFINE_CAP("preview", "Input preview"), - DEFINE_CAP("orientation", "Video orientation") + DEFINE_CAP("orientation", "Video orientation"), + DEFINE_CAP("switch", "Switch device") }; @@ -183,6 +184,10 @@ static pj_status_t get_cap_pointer(const pjmedia_vid_dev_param *param, case PJMEDIA_VID_DEV_CAP_ORIENTATION: FIELD_INFO(orient); break; + /* The PJMEDIA_VID_DEV_CAP_SWITCH does not have an entry in the + * param (it doesn't make sense to open a stream and tell it + * to switch immediately). + */ default: return PJMEDIA_EVID_INVCAP; } |