Commit 61a83171 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Disable already unused video capture code (needs fixing)

parent e1617c8d
......@@ -11,7 +11,8 @@ SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#include "core.h"
#include "kdenlivesettings.h"
#include <QAudioOutput>
#include <QCameraInfo>
// TODO: fix video capture (Hint: QCameraInfo is not available in Qt6 anymore)
//#include <QCameraInfo>
#include <QDir>
#include <QtEndian>
#include <utility>
......@@ -387,9 +388,10 @@ int MediaCapture::startCapture()
return m_tid;
}
void MediaCapture::recordVideo(int tid, bool record)
// TODO: fix video capture
/*void MediaCapture::recordVideo(int tid, bool record)
{
// TODO: fix video capture
Q_UNUSED(tid)
if (!m_videoRecorder) {
QList<QCameraInfo> availableCameras = QCameraInfo::availableCameras();
......@@ -424,7 +426,7 @@ void MediaCapture::recordVideo(int tid, bool record)
m_videoRecorder.reset();
m_camera.reset();
}
}
}*/
void MediaCapture::setCaptureOutputLocation()
{
......
......@@ -53,7 +53,8 @@ public:
MediaCapture(QObject *parent);
~MediaCapture() override;
void recordAudio(int tid, bool /*record*/);
void recordVideo(int tid, bool /*record*/);
// TODO: fix video capture
// void recordVideo(int tid, bool /*record*/);
/** @brief Returns true if a recording is in progress **/
bool isRecording() const;
/** @brief Sets m_path to selected output location **/
......
......@@ -995,9 +995,11 @@ void Core::clean()
void Core::startMediaCapture(int tid, bool checkAudio, bool checkVideo)
{
if (checkAudio && checkVideo) {
// TODO: fix video capture
/*if (checkAudio && checkVideo) {
m_capture->recordVideo(tid, true);
} else if (checkAudio) {
} else*/
if (checkAudio) {
m_capture->recordAudio(tid, true);
}
m_mediaCaptureFile = m_capture->getCaptureOutputLocation();
......@@ -1005,9 +1007,11 @@ void Core::startMediaCapture(int tid, bool checkAudio, bool checkVideo)
void Core::stopMediaCapture(int tid, bool checkAudio, bool checkVideo)
{
if (checkAudio && checkVideo) {
// TODO: fix video capture
/*if (checkAudio && checkVideo) {
m_capture->recordVideo(tid, false);
} else if (checkAudio) {
} else*/
if (checkAudio) {
m_capture->recordAudio(tid, false);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment