Only acquire resources as required in gstreamer backend.
Make resources required for capture optional and disable just the capture features if they are not available, so the camera viewfinder can be displayed and images captured without blocking the music playback and the other way around. Change-Id: Ic9692195156d994ccd4a911ae41d2242a00d575b Reviewed-by: John Brooks <john.brooks@dereferenced.net> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
b27913b76d
commit
15025088ea
@@ -59,6 +59,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QGstreamerMessage;
|
||||
class QGstreamerBusHelper;
|
||||
class CameraBinControl;
|
||||
class CameraBinAudioEncoder;
|
||||
class CameraBinVideoEncoder;
|
||||
class CameraBinImageEncoder;
|
||||
@@ -119,6 +120,7 @@ public:
|
||||
|
||||
GstElement *buildCameraSource();
|
||||
|
||||
CameraBinControl *cameraControl() const { return m_cameraControl; }
|
||||
CameraBinAudioEncoder *audioEncodeControl() const { return m_audioEncodeControl; }
|
||||
CameraBinVideoEncoder *videoEncodeControl() const { return m_videoEncodeControl; }
|
||||
CameraBinImageEncoder *imageEncodeControl() const { return m_imageEncodeControl; }
|
||||
@@ -210,6 +212,7 @@ private:
|
||||
QObject *m_viewfinder;
|
||||
QGstreamerVideoRendererInterface *m_viewfinderInterface;
|
||||
|
||||
CameraBinControl *m_cameraControl;
|
||||
CameraBinAudioEncoder *m_audioEncodeControl;
|
||||
CameraBinVideoEncoder *m_videoEncodeControl;
|
||||
CameraBinImageEncoder *m_imageEncodeControl;
|
||||
|
||||
Reference in New Issue
Block a user