[PATCH 1/3] quartz: Use the moniker to create the filter directly

Alessandro Pignotti alexpigna.dev at gmail.com
Thu Feb 28 05:57:13 CST 2013


Hi everyone,

Currently to create a filter instance from an enumerated IMoniker the
following process is used

1) IMoniker_BindToStorage is used to get an IPropertyBag
2) The CLSID of the object is extracted from the property bag
3) An instance is created using CoCreateInstance

The problem is that it's not guaranteed that every filter as a CLSID in
the property bag, for example windows media player DMOs do not have it.

This patches solves the issue by using IMoniker_BindToObject directly to
create the filters, and using IBaseFilter_GetClassID when the filter
class id is actually needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-quartz-Use-the-moniker-to-create-the-filter-directly.patch
Type: text/x-patch
Size: 1299 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130228/ec4add10/attachment.bin>


More information about the wine-patches mailing list