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

        1. qtbug51825.zip
          4 kB
          Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        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