Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51825

When QCamera::start() fails error signal is not emitted and the status is wrong

    XMLWordPrintable

Details

    Description

      When starting a QCamera instance, which is attached to a physical camera that is already in use, the error() signal is not emitted, the state stays correctly in QCamera::UnloadedState, but the status claims QCamera::LoadedStatus. Also a vague "failed to start" output is printed into debug log (it comes from DSCameraSession::startPreview(), line 542). When QCamera::start() fails we expect to see the error() signal and correct camera status (QCamera::UnavailableStatus maybe).

      Tested only on Windows with DirectShow multimedia backend.

      The attached simple example reproduces the problem. The state, status and error are printed to debug output.

      Attachments

        For Gerrit Dashboard: QTBUG-51825
        # Subject Branch Project Status CR V

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes