From 4420309dc58237a044879278750bafd54dc18462 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 21 Dec 2014 15:24:49 -0800 Subject: [PATCH] Qt: Properly set default video recording settings --- CHANGES | 1 + src/platform/qt/VideoView.cpp | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 61c553d68..f30886676 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ Bugfixes: - Qt: Fix window focus issues - GBA Audio: Support 16-bit writes to FIFO audio - GBA Memory: Properly initialize 1 Mb flash, and add debug logging + - Qt: Properly set default video recording settings Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it diff --git a/src/platform/qt/VideoView.cpp b/src/platform/qt/VideoView.cpp index 214947231..9dc4bf27c 100644 --- a/src/platform/qt/VideoView.cpp +++ b/src/platform/qt/VideoView.cpp @@ -172,13 +172,15 @@ VideoView::VideoView(QWidget* parent) .height = 160, }); - setAudioCodec(m_ui.audio->currentText()); - setVideoCodec(m_ui.video->currentText()); - setAudioBitrate(m_ui.abr->value()); - setVideoBitrate(m_ui.vbr->value()); - setContainer(m_ui.container->currentText()); - setWidth(m_ui.width->value()); - setHeight(m_ui.height->value()); + setPreset((Preset) { + .container = "MKV", + .vcodec = "PNG", + .acodec = "FLAC", + .vbr = 0, + .abr = 0, + .width = 240, + .height = 160, + }); showAdvanced(false); }