Add quit cli command and app quit option after stream session. Fixes #92 (#138)

* Add quit cli command and app quit option after stream session. Fixes #92

* Code review fixes.
This commit is contained in:
Janne Hakonen authored and Cameron Gutman committed 2018-12-05 18:45:28 -08:00
1 parent ad47990a87
commit 0ab07303c9
22 files changed
+678 -67

No files matched your search

+10
View File
@@ -275,6 +275,16 @@ int Session::getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection
return caps;
}
NvComputer *Session::getComputer() const
{
return m_Computer;
}
bool Session::shouldQuitAppAfter() const
{
return m_Preferences->quitAppAfter;
}
Session::Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences)
: m_Preferences(preferences ? preferences : new StreamingPreferences(this)),
m_Computer(computer),