On 2019/1/30 下午10:45, Jactry Zeng wrote:
- IStream *stream;
- union
- {
IStream *stream;
HANDLE file;
- } u;
} mfbytestream;
Please ignore this series at first.
I tried to implement it(both IStream-based and file-based) with IStream and SHCreateStreamOnFileW() before I submitted these. But I found that it is impossible to handle MF_OPENMODE_RESET_IF_EXIST in that way. So I used CreateFileW for file-based IMFByteStream in this series.
Today I found that it may be a bug of Wine's IStream implementation. So it's still hopeful to make thing more simple by using IStream directly. Will have more tests of IStream.
Sorry for spam! Any comment will be appreciative.