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

Windows Media Foundation is being shut down from static destructors

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes