Allow videos to be recorded from when a ROM is loaded, and end when a ROM is shut down
Jeffrey Pfau jeffrey@endrift.com
Mon, 27 Oct 2014 00:17:29 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -150,6 +150,9 @@ if (!m_videoView) {
m_videoView = new VideoView(); connect(m_videoView, SIGNAL(recordingStarted(GBAAVStream*)), m_controller, SLOT(setAVStream(GBAAVStream*))); connect(m_videoView, SIGNAL(recordingStopped()), m_controller, SLOT(clearAVStream()), Qt::DirectConnection); + connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_videoView, SLOT(stopRecording())); + connect(m_controller, SIGNAL(gameStopped(GBAThread*)), m_videoView, SLOT(close())); + connect(this, SIGNAL(shutdown()), m_videoView, SLOT(close())); } m_videoView->show(); }@@ -323,7 +326,6 @@ #ifdef USE_FFMPEG
QAction* recordOutput = new QAction(tr("Record output..."), fileMenu); recordOutput->setShortcut(tr("F11")); connect(recordOutput, SIGNAL(triggered()), this, SLOT(openVideoWindow())); - m_gameActions.append(recordOutput); fileMenu->addAction(recordOutput); #endif