Skip to content

Commit

Permalink
Print error if control port cannot be opened
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jul 27, 2023
1 parent 9fe5a3a commit 51a76c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Common/ProcessFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ void file::Parse(const String& FileName)
try { Controller = new Sony9PinWrapper(Port_Pos); } catch(...) {}
else if (Sony9PinWrapper::GetDeviceIndex(Control_Port) != (size_t)-1)
try { Controller = new Sony9PinWrapper(Control_Port); } catch(...) {}

if (!Controller)
{
cerr << "Error: unable to open control port: " << Control_Port << endl;
return;
}
}
#endif
#ifdef ENABLE_DECKLINK
Expand Down

0 comments on commit 51a76c3

Please sign in to comment.