Allow gst video capture startup without viewfinder attached.
Change-Id: I5f0b7dc12f4ee8e988d6107047d963949bcdb5bf Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com> Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
f2309fa927
commit
b6848df7c2
@@ -764,7 +764,8 @@ void QGstreamerCaptureSession::setVideoPreview(QObject *viewfinder)
|
||||
|
||||
bool QGstreamerCaptureSession::isReady() const
|
||||
{
|
||||
return m_viewfinderInterface != 0 && m_viewfinderInterface->isReady();
|
||||
//it's possible to use QCamera without any viewfinder attached
|
||||
return !m_viewfinderInterface || m_viewfinderInterface->isReady();
|
||||
}
|
||||
|
||||
QGstreamerCaptureSession::State QGstreamerCaptureSession::state() const
|
||||
|
||||
Reference in New Issue
Block a user