mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
video: prevent exception on macOS
Prevent exception when getting supported frame rates. Change-Id: I2fe140bb51e0f20510b1c3f6a62df8921030dc7d
This commit is contained in:
@ -165,7 +165,11 @@ VideoDeviceImpl::getSizeList() const
|
||||
std::vector<FrameRate>
|
||||
VideoDeviceImpl::getRateList(const std::string& channel, VideoSize size) const
|
||||
{
|
||||
return available_rates_.at(size);
|
||||
auto it = available_rates_.find(size);
|
||||
if (it != available_rates_.end()) {
|
||||
return it->second;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<VideoSize>
|
||||
|
Reference in New Issue
Block a user