mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 14:40:10 +00:00
GUI: Treat all errors as fatal by default
This commit is contained in:
@@ -213,6 +213,7 @@ const static struct{
|
||||
{"advanced", Option::BoolOpt, "", "f", false, "", ""},
|
||||
{"preview", Option::BoolOpt, "", "t", true, "", ""},
|
||||
{"vuMeter", Option::BoolOpt, "", "t", true, "", ""},
|
||||
{"errors_fatal", Option::BoolOpt, " --param errors-fatal", "t", true, "", ""},
|
||||
};
|
||||
|
||||
const struct {
|
||||
@@ -280,6 +281,7 @@ std::string Settings::getLaunchParams() const{
|
||||
out += getOption("network.control_port").getLaunchOption();
|
||||
out += getOption("network.destination").getLaunchOption();
|
||||
out += getOption("decode.hwaccel").getLaunchOption();
|
||||
out += getOption("errors_fatal").getLaunchOption();
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -191,4 +191,5 @@ void SettingsUi::initSettingsWin(Ui::Settings *ui){
|
||||
addControl(new RadioButtonUi(ui->ldgmCpuRadio, "CPU", settings, "network.fec.ldgm.device"));
|
||||
addControl(new RadioButtonUi(ui->ldgmGpuRadio, "GPU", settings, "network.fec.ldgm.device"));
|
||||
addControl(new CheckboxUi(ui->decodeAccelCheck, settings, "decode.hwaccel"));
|
||||
addControl(new CheckboxUi(ui->errorsFatalBox, settings, "errors_fatal"));
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="Network">
|
||||
<property name="sizePolicy">
|
||||
@@ -520,6 +520,20 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="Advanced">
|
||||
<attribute name="title">
|
||||
<string>Advanced</string>
|
||||
</attribute>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="errorsFatalBox">
|
||||
<property name="text">
|
||||
<string>Exit on all errors</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user