Commit ada8ab24 authored by aymeric's avatar aymeric
Browse files

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
parent 7e21dbc0
......@@ -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{
......
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