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

QPlatformMediaDevices is accessed before main on Android

    XMLWordPrintable

Details

    • Android
    • e209051ca (dev), ae554adf7 (6.7), a17ebfc63 (6.6), e79cb33c5 (tqtc/lts-6.5)
    • 2024wk08FOQtforAndroid

    Description

      On Android, QPlatformMediaDevices is created before main starts executing. This happens because the onAudioInputDevicesUpdated function in QAndroidmediaDevices  is called early at startup, and initializes the QPlatformMediaDevices singleton.

      This is a design problem because we end up connecting signals before QCoreApplication has been created, and we don't have a reliable mechanism to make sure events are processed at the expected time.

      This prevents implementing fix for QTBUG-121768 and makes tst_qmediadevices more complex than it should be.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              johanseg Jøger Hansegård
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes