[camera] Account for errors reported by camera source. Contributes to JB#35616
There are errors which can occur during manipulating camera HW. camerabin does not relay any errors and it is the responsibility of camerabin user to handle those errors. We just react to them and propagate them farther.
This commit is contained in:
committed by
Martin Jones
parent
46c29f5b0b
commit
1f90ee5518
@@ -999,8 +999,9 @@ bool CameraBinSession::processBusMessage(const QGstreamerMessage &message)
|
||||
qWarning() << "CameraBin error:" << message;
|
||||
}
|
||||
|
||||
//only report error messager from camerabin
|
||||
if (GST_MESSAGE_SRC(gm) == GST_OBJECT_CAST(m_camerabin)) {
|
||||
GstObject *src = GST_MESSAGE_SRC(gm);
|
||||
//only report error messager from camerabin or camera source
|
||||
if (src == GST_OBJECT_CAST(m_camerabin) || src == GST_OBJECT_CAST(m_cameraSrc)) {
|
||||
if (message.isEmpty())
|
||||
message = tr("Camera error");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user