MinGW header lacks of some attributes of MFT_MESSAGE_TYPE
Categories
(Firefox Build System :: General, defect, P3)
Tracking
(firefox112 fixed)
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: alwu, Assigned: tjr)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The current definition of MFT_MESSAGE_TYPE doesn't match the definition of MS's one, it lacks some attributes which causes bug 1740131.
Looks like these are generated from idl and we/mingw folks need to update those definitions.
Going of the magic number DB I think the new def would be
typedef enum _MFT_MESSAGE_TYPE {
MFT_MESSAGE_COMMAND_FLUSH = 0x00000000,
MFT_MESSAGE_COMMAND_DRAIN = 0x00000001,
MFT_MESSAGE_SET_D3D_MANAGER = 0x00000002,
MFT_MESSAGE_DROP_SAMPLES = 0x00000003,
MFT_MESSAGE_COMMAND_TICK = 0x00000004,
MFT_MESSAGE_NOTIFY_BEGIN_STREAMING = 0x10000000,
MFT_MESSAGE_NOTIFY_END_STREAMING = 0x10000001,
MFT_MESSAGE_NOTIFY_END_OF_STREAM = 0x10000002,
MFT_MESSAGE_NOTIFY_START_OF_STREAM = 0x10000003,
MFT_MESSAGE_NOTIFY_RELEASE_RESOURCES = 0x10000004,
MFT_MESSAGE_NOTIFY_REACQUIRE_RESOURCES = 0x10000005,
MFT_MESSAGE_NOTIFY_EVENT = 0x10000006,
MFT_MESSAGE_COMMAND_SET_OUTPUT_STREAM_STATE = 0x10000007,
MFT_MESSAGE_COMMAND_FLUSH_OUTPUT_STREAM = 0x10000008,
MFT_MESSAGE_COMMAND_MARKER = 0x20000000
} MFT_MESSAGE_TYPE;
I image that would be sufficient to fix the issue in bug 1740131, but don't know much about mingw and if they'd need further changes elsewhere (like tests).
Updated•3 years ago
|
Comment 2•1 year ago
|
||
I've checked upstream and the definitions are still inconsistent with MS' one: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/include/mftransform.h#l108
The original build issue being fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=1740131 , I think it's fine to close this one.
Maybe Tom has an extra opinion?
Assignee | ||
Comment 3•1 year ago
|
||
No; we like to keep these issue open (and blocking mingw-clang meta bug) so that when we update the mingw headers (which I am working on now) we can go through and remove the mingw hack-arounds and validate the fixes.
Assignee | ||
Comment 4•1 year ago
|
||
Depends on D169372
Updated•1 year ago
|
Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a603660fe583 Define the MFT_MESSAGE_TYPE's for MinGW r=media-playback-reviewers,alwu
Comment 6•1 year ago
|
||
bugherder |
Description
•