forked from mirrors/linphone-iphone
Fix msvc compilation
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@203 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
4ebf0a9eb5
commit
99e7c3cf78
1 changed files with 6 additions and 2 deletions
|
|
@ -729,10 +729,14 @@ static void video_out_process(MSFilter *f){
|
|||
newsize.width=src.w;
|
||||
newsize.height=src.h;
|
||||
if (obj->autofit && !ms_video_size_equal(newsize,obj->prevsize) ) {
|
||||
MSVideoSize qvga_size;
|
||||
qvga_size.width=MS_VIDEO_SIZE_QVGA_W;
|
||||
qvga_size.height=MS_VIDEO_SIZE_QVGA_H;
|
||||
obj->prevsize=newsize;
|
||||
/*don't resize less than QVGA, it is too small*/
|
||||
if (ms_video_size_greater_than(MS_VIDEO_SIZE_QVGA,newsize)){
|
||||
newsize=MS_VIDEO_SIZE_QVGA;
|
||||
if (ms_video_size_greater_than(qvga_size,newsize)){
|
||||
newsize.width=MS_VIDEO_SIZE_QVGA_W;
|
||||
newsize.height=MS_VIDEO_SIZE_QVGA_H;
|
||||
}
|
||||
if (!ms_video_size_equal(newsize,cur)){
|
||||
set_vsize(obj,&newsize);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue