Skip to content
Snippets Groups Projects
Commit 3a7ccb3d authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

Revert "video device: recheck the video properties"

This reverts commit 2f6f35cf.

Change-Id: I8b7d0b0fcccd010f03e1e29774ff9afe8e968452
parent d97c9aae
No related branches found
No related tags found
No related merge requests found
......@@ -57,11 +57,10 @@ public:
DeviceParams getDeviceParams() const;
void setDeviceParams(const DeviceParams&);
void setup();
private:
std::unique_ptr<CaptureGraphInterfaces> cInterface;
void setup();
std::vector<VideoSize> sizeList_;
std::map<VideoSize, std::vector<FrameRate>> rateList_;
std::map<VideoSize, AM_MEDIA_TYPE*> capMap_;
......@@ -81,13 +80,6 @@ VideoDeviceImpl::VideoDeviceImpl(const std::string& id)
void
VideoDeviceImpl::setup()
{
// Add new size, rate, bitrate, and cap map.
sizeList_.clear();
rateList_.clear();
capMap_.clear();
cInterface.reset(new CaptureGraphInterfaces());
if (id == DEVICE_DESKTOP) {
name = DEVICE_DESKTOP;
VideoSize size {0, 0};
......@@ -365,7 +357,6 @@ VideoDevice::VideoDevice(const std::string& path,
DeviceParams
VideoDevice::getDeviceParams() const
{
deviceImpl_->setup();
return deviceImpl_->getDeviceParams();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment