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
This commit is contained in:
aymeric 2008-10-24 12:10:26 +00:00
parent 86671fa980
commit 4a17d10766
2 changed files with 12 additions and 2 deletions

View file

@ -341,6 +341,10 @@
RelativePath="..\..\src\winsndds.cpp"
>
</File>
<File
RelativePath="..\..\src\winvideo2.c"
>
</File>
<File
RelativePath="..\..\src\winvideods.c"
>
@ -435,6 +439,10 @@
RelativePath="..\..\include\mediastreamer2\rfc2429.h"
>
</File>
<File
RelativePath="..\..\src\vfw-missing.h"
>
</File>
<File
RelativePath="..\..\include\mediastreamer2\waveheader.h"
>

View file

@ -190,10 +190,12 @@ static int _vfw_engine_setup(VfwEngine *obj){
static VfwEngine * vfw_engine_new(int i){
char dev[512];
char ver[512];
VfwEngine *obj=ms_new0(VfwEngine,1);
VfwEngine *obj=(VfwEngine*)ms_new0(VfwEngine,1);
if (capGetDriverDescription(i, dev, sizeof (dev),
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 */
,0,0,sz.width,sz.height,HWND_MESSAGE, 0) ;