mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
Revert "video device: recheck the video properties"
This reverts commit 2f6f35cf04
.
Change-Id: I8b7d0b0fcccd010f03e1e29774ff9afe8e968452
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user