Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
61a83171
Commit
61a83171
authored
Aug 14, 2022
by
Julius Künzel
💬
Browse files
Disable already unused video capture code (needs fixing)
parent
e1617c8d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/capture/mediacapture.cpp
View file @
61a83171
...
...
@@ -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
()
{
...
...
src/capture/mediacapture.h
View file @
61a83171
...
...
@@ -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 **/
...
...
src/core.cpp
View file @
61a83171
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment