Qt: Properly set default video recording settings

This commit is contained in:
Jeffrey Pfau 2014-12-21 15:24:49 -08:00
parent f2c08b7d75
commit 32f9621833
2 changed files with 10 additions and 7 deletions

View File

@ -10,6 +10,7 @@ Bugfixes:
- Debugger: Negative PC-relative loads now properly subtract the offset - Debugger: Negative PC-relative loads now properly subtract the offset
- Qt: Fix window focus issues - Qt: Fix window focus issues
- GBA Memory: Properly initialize 1 Mb flash, and add debug logging - GBA Memory: Properly initialize 1 Mb flash, and add debug logging
- Qt: Properly set default video recording settings
Misc: Misc:
- Qt: Disable sync to video by default - Qt: Disable sync to video by default
- GBA: Exit cleanly on FATAL if the port supports it - GBA: Exit cleanly on FATAL if the port supports it

View File

@ -172,13 +172,15 @@ VideoView::VideoView(QWidget* parent)
.height = 160, .height = 160,
}); });
setAudioCodec(m_ui.audio->currentText()); setPreset((Preset) {
setVideoCodec(m_ui.video->currentText()); .container = "MKV",
setAudioBitrate(m_ui.abr->value()); .vcodec = "PNG",
setVideoBitrate(m_ui.vbr->value()); .acodec = "FLAC",
setContainer(m_ui.container->currentText()); .vbr = 0,
setWidth(m_ui.width->value()); .abr = 0,
setHeight(m_ui.height->value()); .width = 240,
.height = 160,
});
showAdvanced(false); showAdvanced(false);
} }