Changes between Version 1 and Version 2 of Ticket #13443, comment 46


Ignore:
Timestamp:
Oct 30, 2014, 4:50:48 PM (5 years ago)
Author:
cypherpunks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13443, comment 46

    v1 v2  
    1 Patch for BaseFilter:
    2 {{{
    3    if (riid == IID_IBaseFilter || riid == IID_IUnknown) {
    4      *aInterface = static_cast<IBaseFilter*>(this);
    5 +  } else if (riid == __uuidof(BaseFilter)) {
    6 +    *aInterface = this;
    7    } else if (riid == IID_IMediaFilter) {
    8      *aInterface = static_cast<IMediaFilter*>(this);
    9    } else if (riid == IID_IPersist) {
    10 }}}
    11 and for BasePin:
    12 {{{
    13    if (aIID == IID_IPin || aIID == IID_IUnknown) {
    14      *aInterface = static_cast<IPin*>(this);
    15 +  } else if (aIID == __uuidof(BasePin)) {
    16 +    *aInterface = this;
    17    } else if (aIID == IID_IQualityControl) {
    18      *aInterface = static_cast<IQualityControl*>(this);
    19    } else {
    20 }}}
    21 Probably non working/wrong.
     1Nothing