fix bug when size is not the expected one

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@126 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
aymeric 2008-10-28 17:30:27 +00:00
parent 7e21dbc0e8
commit ada8ab2409

View file

@ -360,8 +360,8 @@ VideoStream * video_preview_start(MSWebCam *device, MSVideoSize vsize){
/* configure the filters */
ms_filter_call_method(stream->source,MS_FILTER_SET_VIDEO_SIZE,&vsize);
ms_filter_call_method(stream->source,MS_FILTER_GET_VIDEO_SIZE,&vsize);
ms_filter_call_method(stream->source,MS_FILTER_GET_PIX_FMT,&format);
ms_filter_call_method(stream->source,MS_FILTER_GET_VIDEO_SIZE,&vsize);
if (format==MS_MJPEG){
stream->pixconv=ms_filter_new(MS_MJPEG_DEC_ID);
}else{