Commit 4a17d107 authored by aymeric's avatar aymeric
Browse files

Fix visualstudio compilation and add missing files for native compilation.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@115 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 86671fa9
...@@ -341,6 +341,10 @@ ...@@ -341,6 +341,10 @@
RelativePath="..\..\src\winsndds.cpp" RelativePath="..\..\src\winsndds.cpp"
> >
</File> </File>
<File
RelativePath="..\..\src\winvideo2.c"
>
</File>
<File <File
RelativePath="..\..\src\winvideods.c" RelativePath="..\..\src\winvideods.c"
> >
...@@ -435,6 +439,10 @@ ...@@ -435,6 +439,10 @@
RelativePath="..\..\include\mediastreamer2\rfc2429.h" RelativePath="..\..\include\mediastreamer2\rfc2429.h"
> >
</File> </File>
<File
RelativePath="..\..\src\vfw-missing.h"
>
</File>
<File <File
RelativePath="..\..\include\mediastreamer2\waveheader.h" RelativePath="..\..\include\mediastreamer2\waveheader.h"
> >
......
...@@ -190,10 +190,12 @@ static int _vfw_engine_setup(VfwEngine *obj){ ...@@ -190,10 +190,12 @@ static int _vfw_engine_setup(VfwEngine *obj){
static VfwEngine * vfw_engine_new(int i){ static VfwEngine * vfw_engine_new(int i){
char dev[512]; char dev[512];
char ver[512]; char ver[512];
VfwEngine *obj=ms_new0(VfwEngine,1); VfwEngine *obj=(VfwEngine*)ms_new0(VfwEngine,1);
if (capGetDriverDescription(i, dev, sizeof (dev), if (capGetDriverDescription(i, dev, sizeof (dev),
ver, sizeof (ver))){ ver, sizeof (ver))){
MSVideoSize sz=MS_VIDEO_SIZE_CIF; MSVideoSize sz;
sz.width=MS_VIDEO_SIZE_CIF_W;
sz.height=MS_VIDEO_SIZE_CIF_H;
HWND hwnd=capCreateCaptureWindow("Capture Window",WS_CHILD /* WS_OVERLAPPED */ HWND hwnd=capCreateCaptureWindow("Capture Window",WS_CHILD /* WS_OVERLAPPED */
,0,0,sz.width,sz.height,HWND_MESSAGE, 0) ; ,0,0,sz.width,sz.height,HWND_MESSAGE, 0) ;
......
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