diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-10-26 09:01:53 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-10-26 09:01:53 +0000 |
commit | 6187fb31a1f1e9b1f07f1b9b8022c97f3c02b25e (patch) | |
tree | 5fa3549dde179190131509ba4079d4bfbecb0200 /pjmedia/src/pjmedia-videodev/videodev.c | |
parent | 685cb1d88b3fa2e12547d11834f5b34335507f94 (diff) |
Fixed #1401: Add support for video device's window flags
Now support flags PJMEDIA_VID_DEV_WND_BORDER and PJMEDIA_VID_DEV_WND_RESIZABLE.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3864 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-videodev/videodev.c')
-rw-r--r-- | pjmedia/src/pjmedia-videodev/videodev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-videodev/videodev.c b/pjmedia/src/pjmedia-videodev/videodev.c index dad2c12b..9a82ba6e 100644 --- a/pjmedia/src/pjmedia-videodev/videodev.c +++ b/pjmedia/src/pjmedia-videodev/videodev.c @@ -46,7 +46,8 @@ static struct cap_info DEFINE_CAP("hide", "Renderer hide"), DEFINE_CAP("preview", "Input preview"), DEFINE_CAP("orientation", "Video orientation"), - DEFINE_CAP("switch", "Switch device") + DEFINE_CAP("switch", "Switch device"), + DEFINE_CAP("wndflags", "Window flags") }; @@ -188,6 +189,9 @@ static pj_status_t get_cap_pointer(const pjmedia_vid_dev_param *param, * param (it doesn't make sense to open a stream and tell it * to switch immediately). */ + case PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW_FLAGS: + FIELD_INFO(window_flags); + break; default: return PJMEDIA_EVID_INVCAP; } |