Commit ac63fdc6 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix camera change on Windows Phone 8.

parent 9f5f8611
...@@ -881,6 +881,9 @@ static void _video_stream_change_camera(VideoStream *stream, MSWebCam *cam, MSFi ...@@ -881,6 +881,9 @@ static void _video_stream_change_camera(VideoStream *stream, MSWebCam *cam, MSFi
stream->player_active=FALSE; stream->player_active=FALSE;
} }
} }
if (stream->source_performs_encoding == TRUE) {
stream->ms.encoder = stream->source; /* Consider the encoder is the source */
}
/* update orientation for video output*/ /* update orientation for video output*/
if (stream->output && stream->display_filter_auto_rotate_enabled && ms_filter_has_method(stream->output, MS_VIDEO_DISPLAY_SET_DEVICE_ORIENTATION)) { if (stream->output && stream->display_filter_auto_rotate_enabled && ms_filter_has_method(stream->output, MS_VIDEO_DISPLAY_SET_DEVICE_ORIENTATION)) {
......
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