diff options
author | Piotr Srebrny <piotr.srebrny@qt.io> | 2021-06-08 11:10:07 +0200 |
---|---|---|
committer | Piotr Srebrny <piotr.srebrny@qt.io> | 2021-06-16 22:37:31 +0200 |
commit | 00f89c1ab92ffb9c2c61bcb5e89b813214f45ac7 (patch) | |
tree | 7ed58b076fc94906229b8381a6a835cc0905b886 /src/multimedia/recording/qmediarecorder.h | |
parent | d19031d94fc28241229348e449a0d6bf69ba8b2f (diff) |
Make setOutputLocation behavior consistent across supported platforms
outputLocation is always set regardless of whether is it valid or not,
unless platform does not support encoding. If the output location
is not writable an errorOccured signal is emitted.
QNX and Android stored outputLocation in the capture session object.
This has been removed and instead a recording(QUrl location) call
is used to provide location information for the recording session.
Reset m_mediaRecorder after deleting in QAndroidCaptureSession::start
Change-Id: Ib1048410945aaf36532eb8606a4f9eb47460daf7
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/recording/qmediarecorder.h')
-rw-r--r-- | src/multimedia/recording/qmediarecorder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/multimedia/recording/qmediarecorder.h b/src/multimedia/recording/qmediarecorder.h index d92cd3ec9..d65d516b1 100644 --- a/src/multimedia/recording/qmediarecorder.h +++ b/src/multimedia/recording/qmediarecorder.h @@ -116,7 +116,8 @@ public: NoError, ResourceError, FormatError, - OutOfSpaceError + OutOfSpaceError, + LocationNotWritable }; Q_ENUM(Error) @@ -126,7 +127,7 @@ public: bool isAvailable() const; QUrl outputLocation() const; - bool setOutputLocation(const QUrl &location); + void setOutputLocation(const QUrl &location); QUrl actualLocation() const; |