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

Windows Media Foundation is being shut down from static destructors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5, 6.6, 6.7
    • Multimedia
    • None

    Description

      According to [MFShutdown function (mfapi.h) - Win32 apps | Microsoft Learn|https://learn.microsoft.com/en-us/windows/win32/api/mfapi/nf-mfapi-mfshutdown], FMStartup and MFShutdown should not be called during static destruction.

      The consequence of doing so is crashes during shutdown or failure to call remaining destructors. See for example QTBUG-120198.

      The goal is to shut down WMF when the QApplication shuts down. This requires structural refactoring of the different backends.

      Attachments

        Issue Links

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

          Activity

            People

              johanseg Jøger Hansegård
              johanseg Jøger Hansegård
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes