mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-27 00:08:54 -04:00
UI: Add command line opts to start streaming/recording
These command line options allow the user to start streaming/recording on program startup.
This commit is contained in:
1 parent
b52c4f9634
commit
3bd4fe5409
3 files changed
+22
No files matched your search
@@ -598,6 +598,18 @@ retryScene:
|
||||
if (!opt_starting_scene.empty())
|
||||
opt_starting_scene.clear();
|
||||
|
||||
if (opt_start_streaming) {
|
||||
QMetaObject::invokeMethod(this, "StartStreaming",
|
||||
Qt::QueuedConnection);
|
||||
opt_start_streaming = false;
|
||||
}
|
||||
|
||||
if (opt_start_recording) {
|
||||
QMetaObject::invokeMethod(this, "StartRecording",
|
||||
Qt::QueuedConnection);
|
||||
opt_start_recording = false;
|
||||
}
|
||||
|
||||
disableSaving--;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user