Skip to content
Snippets Groups Projects
Commit b86ecf7a authored by Adrien Béraud's avatar Adrien Béraud
Browse files

video: lock setDeviceOrientation

Change-Id: I9637fe95a38124d6ab13116671191432f09c6979
parent ae7c912a
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,7 @@ VideoDeviceMonitor::setDefaultDevice(const std::string& id)
void
VideoDeviceMonitor::setDeviceOrientation(const std::string& id, int angle)
{
std::lock_guard<std::mutex> l(lock_);
const auto itd = findDeviceById(id);
if (itd != devices_.cend()) {
itd->setOrientation(angle);
......
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