Skip to content

Commit

Permalink
Merge pull request openvinotoolkit#1736 from fzhar/VideoCapWrapper_re…
Browse files Browse the repository at this point in the history
…factoring

Catch fix for Linux
  • Loading branch information
vladimir-dudnik authored Nov 3, 2020
2 parents 86ff0a2 + 18187bf commit 723726c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/common/src/images_capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class VideoCapWrapper : public ImagesCapture {
return;
}
}
catch (std::invalid_argument) {} // If stoi conversion failed, let's try another way to open capture device
catch (std::out_of_range) {}
catch (const std::invalid_argument&) {} // If stoi conversion failed, let's try another way to open capture device
catch (const std::out_of_range&) {}

if (cap.open(input)) {
this->readLengthLimit = readLengthLimit;
Expand Down

0 comments on commit 723726c

Please sign in to comment.