Commit 531aec55 authored by Ghislain MARY's avatar Ghislain MARY

Revert "Do not init capture when creating reader"

This reverts commit 8587c7b9.
parent e30cabe7
......@@ -345,7 +345,7 @@ MSWinRTCap::MSWinRTCap()
: mIsInitialized(false), mIsActivated(false), mIsStarted(false), mFps(15), mStartTime(0), mDeviceOrientation(0)
{
if (smInstantiated) {
ms_error("[MSWinRTCap] A video capture filter is already instantiated. A second one can not be created.");
ms_error("[MSWinRTCap] An video capture filter is already instantiated. A second one can not be created.");
return;
}
......@@ -385,7 +385,6 @@ int MSWinRTCap::activate()
int MSWinRTCap::deactivate()
{
if (!mIsActivated) return -1;
mHelper->StopPreview();
mIsActivated = false;
return 0;
......
......@@ -191,7 +191,7 @@ static MSFilter *ms_winrtcap_create_reader(MSWebCam *cam) {
r->setDeviceId(ref new Platform::String(winrtcam->id));
r->setFront(winrtcam->front == TRUE);
r->setExternal(winrtcam->external == TRUE);
//r->initialize();
r->initialize();
return f;
}
......
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