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

Retrieving videoDevices blocks main event loop

    XMLWordPrintable

Details

    • Windows
    • 4d4ce1b8d (dev), 2964b974c (dev), 6f386c218 (6.7), 1806cb4d7 (6.6), 5aba80386 (tqtc/lts-6.5), b573c337a (6.7), 6e817fc7a (6.6), 2e581b275 (tqtc/lts-6.5)

    Description

      Attached a small QML camera example which creates a Camera Item and iterates over all videoDevices to search for a specific one. The code searching for a USB camera but that part is not important.

      When starting the example with the default backend on windows (ffmpeg) you can see that the main eventloop is blocked for >1 seconds to retrieve the available videoDevices.

      Starting the same application with the "windows" backend reduces the blocking to a few milliseconds.

      Attachments

        Activity

          People

            johanseg Jøger Hansegård
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: