diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-01-22 13:50:49 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-01-29 08:51:41 +0000 |
commit | a32a5a2fc32441c402ddb67d893442c96c8fee0c (patch) | |
tree | d093229c194b6e107a7906df446d21f4f2c2e7d4 /src/multimedia/recording | |
parent | c4eee3b6ccd4dfd861f6a9345970a7cfc8d8b833 (diff) |
Make camera switching in the camera example work
Tested on macOS: If you have more than one camera installed, you
can now switch between them in the example.
Change-Id: I6d24c91e1e6c4d51eccc468ec9d5aefa46d9a99c
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/recording')
-rw-r--r-- | src/multimedia/recording/qmediarecorder_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/recording/qmediarecorder_p.h b/src/multimedia/recording/qmediarecorder_p.h index 630dd46d3..ecfc030b1 100644 --- a/src/multimedia/recording/qmediarecorder_p.h +++ b/src/multimedia/recording/qmediarecorder_p.h @@ -74,7 +74,7 @@ public: void applySettingsLater(); void restartCamera(); - QMediaSource *mediaSource = nullptr; + QPointer<QMediaSource> mediaSource; QMediaRecorderControl *control = nullptr; QMediaContainerControl *formatControl = nullptr; |