mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-15 01:23:37 -07:00
Auto-generate Did
This commit is contained in:
parent
73ccfb6f22
commit
eeb28c7c8a
5 changed files with 7 additions and 15 deletions
|
@ -75,10 +75,6 @@ int main(int argc, char *argv[])
|
|||
QCommandLineOption morning_option("morning", "", "morning");
|
||||
parser.addOption(morning_option);
|
||||
|
||||
QCommandLineOption did_option("did", "", "did");
|
||||
parser.addOption(did_option);
|
||||
|
||||
|
||||
parser.process(app);
|
||||
QStringList args = parser.positionalArguments();
|
||||
|
||||
|
@ -100,13 +96,12 @@ int main(int argc, char *argv[])
|
|||
connect_info.host = host;
|
||||
connect_info.regist_key = parser.value(regist_key_option);
|
||||
connect_info.morning = parser.value(morning_option);
|
||||
connect_info.did = parser.value(did_option);
|
||||
|
||||
chiaki_connect_video_profile_preset(&connect_info.video_profile,
|
||||
CHIAKI_VIDEO_RESOLUTION_PRESET_720p,
|
||||
CHIAKI_VIDEO_FPS_PRESET_30);
|
||||
|
||||
if(connect_info.regist_key.isEmpty() || connect_info.morning.isEmpty() || connect_info.did.isEmpty())
|
||||
if(connect_info.regist_key.isEmpty() || connect_info.morning.isEmpty())
|
||||
parser.showHelp(1);
|
||||
|
||||
return RunStream(app, connect_info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue