Ignore:
Timestamp:
Sep 15, 2001, 11:28:23 AM (24 years ago)
Author:
sandervl
Message:

wine update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/quartz/impos.c

    r6649 r6710  
    1 /* $Id: impos.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */
    21/*
    32 * Implementation of IMediaPosition for FilterGraph.
     
    3029IMediaPosition_fnQueryInterface(IMediaPosition* iface,REFIID riid,void** ppobj)
    3130{
    32     CFilterGraph_THIS(iface,mediaposition);
    33 
    34     TRACE("(%p)->()\n",This);
    35 
    36     return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
     31        CFilterGraph_THIS(iface,mediaposition);
     32
     33        TRACE("(%p)->()\n",This);
     34
     35        return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
    3736}
    3837
     
    4039IMediaPosition_fnAddRef(IMediaPosition* iface)
    4140{
    42     CFilterGraph_THIS(iface,mediaposition);
    43 
    44     TRACE("(%p)->()\n",This);
    45 
    46     return IUnknown_AddRef(This->unk.punkControl);
     41        CFilterGraph_THIS(iface,mediaposition);
     42
     43        TRACE("(%p)->()\n",This);
     44
     45        return IUnknown_AddRef(This->unk.punkControl);
    4746}
    4847
     
    5049IMediaPosition_fnRelease(IMediaPosition* iface)
    5150{
    52     CFilterGraph_THIS(iface,mediaposition);
    53 
    54     TRACE("(%p)->()\n",This);
    55 
    56     return IUnknown_Release(This->unk.punkControl);
     51        CFilterGraph_THIS(iface,mediaposition);
     52
     53        TRACE("(%p)->()\n",This);
     54
     55        return IUnknown_Release(This->unk.punkControl);
    5756}
    5857
     
    6059IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo)
    6160{
    62     CFilterGraph_THIS(iface,mediaposition);
    63 
    64     FIXME("(%p)->()\n",This);
    65 
    66     return E_NOTIMPL;
     61        CFilterGraph_THIS(iface,mediaposition);
     62
     63        TRACE("(%p)->()\n",This);
     64
     65        return IDispatch_GetTypeInfoCount(
     66                CFilterGraph_IDispatch(This),pcTypeInfo);
    6767}
    6868
     
    7070IMediaPosition_fnGetTypeInfo(IMediaPosition* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
    7171{
    72     CFilterGraph_THIS(iface,mediaposition);
    73 
    74     FIXME("(%p)->()\n",This);
    75 
    76     return E_NOTIMPL;
     72        CFilterGraph_THIS(iface,mediaposition);
     73
     74        TRACE("(%p)->()\n",This);
     75
     76        return IDispatch_GetTypeInfo(
     77                CFilterGraph_IDispatch(This),iTypeInfo,lcid,ppobj);
    7778}
    7879
     
    8081IMediaPosition_fnGetIDsOfNames(IMediaPosition* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
    8182{
    82     CFilterGraph_THIS(iface,mediaposition);
    83 
    84     FIXME("(%p)->()\n",This);
    85 
    86     return E_NOTIMPL;
     83        CFilterGraph_THIS(iface,mediaposition);
     84
     85        TRACE("(%p)->()\n",This);
     86
     87        return IDispatch_GetIDsOfNames(
     88                CFilterGraph_IDispatch(This),riid,ppwszName,cNames,lcid,pDispId);
    8789}
    8890
     
    9092IMediaPosition_fnInvoke(IMediaPosition* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
    9193{
    92     CFilterGraph_THIS(iface,mediaposition);
    93 
    94     FIXME("(%p)->()\n",This);
    95 
    96     return E_NOTIMPL;
     94        CFilterGraph_THIS(iface,mediaposition);
     95
     96        TRACE("(%p)->()\n",This);
     97
     98        return IDispatch_Invoke(
     99                CFilterGraph_IDispatch(This),
     100                DispId,riid,lcid,wFlags,pDispParams,pVarRes,pExcepInfo,puArgErr);
    97101}
    98102
     
    101105IMediaPosition_fnget_Duration(IMediaPosition* iface,REFTIME* prefTime)
    102106{
    103     CFilterGraph_THIS(iface,mediaposition);
    104 
    105     FIXME("(%p)->() stub!\n",This);
    106 
    107     return E_NOTIMPL;
     107        CFilterGraph_THIS(iface,mediaposition);
     108
     109        FIXME("(%p)->() stub!\n",This);
     110
     111        return E_NOTIMPL;
    108112}
    109113
     
    111115IMediaPosition_fnput_CurrentPosition(IMediaPosition* iface,REFTIME refTime)
    112116{
    113     CFilterGraph_THIS(iface,mediaposition);
    114 
    115     FIXME("(%p)->() stub!\n",This);
    116 
    117     return E_NOTIMPL;
     117        CFilterGraph_THIS(iface,mediaposition);
     118
     119        FIXME("(%p)->() stub!\n",This);
     120
     121        return E_NOTIMPL;
    118122}
    119123
     
    121125IMediaPosition_fnget_CurrentPosition(IMediaPosition* iface,REFTIME* prefTime)
    122126{
    123     CFilterGraph_THIS(iface,mediaposition);
    124 
    125     FIXME("(%p)->() stub!\n",This);
    126 
    127     return E_NOTIMPL;
     127        CFilterGraph_THIS(iface,mediaposition);
     128
     129        FIXME("(%p)->() stub!\n",This);
     130
     131        return E_NOTIMPL;
    128132}
    129133
     
    131135IMediaPosition_fnget_StopTime(IMediaPosition* iface,REFTIME* prefTime)
    132136{
    133     CFilterGraph_THIS(iface,mediaposition);
    134 
    135     FIXME("(%p)->() stub!\n",This);
    136 
    137     return E_NOTIMPL;
     137        CFilterGraph_THIS(iface,mediaposition);
     138
     139        FIXME("(%p)->() stub!\n",This);
     140
     141        return E_NOTIMPL;
    138142}
    139143
     
    141145IMediaPosition_fnput_StopTime(IMediaPosition* iface,REFTIME refTime)
    142146{
    143     CFilterGraph_THIS(iface,mediaposition);
    144 
    145     FIXME("(%p)->() stub!\n",This);
    146 
    147     return E_NOTIMPL;
     147        CFilterGraph_THIS(iface,mediaposition);
     148
     149        FIXME("(%p)->() stub!\n",This);
     150
     151        return E_NOTIMPL;
    148152}
    149153
     
    151155IMediaPosition_fnget_PrerollTime(IMediaPosition* iface,REFTIME* prefTime)
    152156{
    153     CFilterGraph_THIS(iface,mediaposition);
    154 
    155     FIXME("(%p)->() stub!\n",This);
    156 
    157     return E_NOTIMPL;
     157        CFilterGraph_THIS(iface,mediaposition);
     158
     159        FIXME("(%p)->() stub!\n",This);
     160
     161        return E_NOTIMPL;
    158162}
    159163
     
    161165IMediaPosition_fnput_PrerollTime(IMediaPosition* iface,REFTIME refTime)
    162166{
    163     CFilterGraph_THIS(iface,mediaposition);
    164 
    165     FIXME("(%p)->() stub!\n",This);
    166 
    167     return E_NOTIMPL;
     167        CFilterGraph_THIS(iface,mediaposition);
     168
     169        FIXME("(%p)->() stub!\n",This);
     170
     171        return E_NOTIMPL;
    168172}
    169173
     
    171175IMediaPosition_fnput_Rate(IMediaPosition* iface,double dblRate)
    172176{
    173     CFilterGraph_THIS(iface,mediaposition);
    174 
    175     FIXME("(%p)->() stub!\n",This);
    176 
    177     return E_NOTIMPL;
     177        CFilterGraph_THIS(iface,mediaposition);
     178
     179        FIXME("(%p)->() stub!\n",This);
     180
     181        return E_NOTIMPL;
    178182}
    179183
     
    181185IMediaPosition_fnget_Rate(IMediaPosition* iface,double* pdblRate)
    182186{
    183     CFilterGraph_THIS(iface,mediaposition);
    184 
    185     FIXME("(%p)->() stub!\n",This);
    186 
    187     return E_NOTIMPL;
     187        CFilterGraph_THIS(iface,mediaposition);
     188
     189        FIXME("(%p)->() stub!\n",This);
     190
     191        return E_NOTIMPL;
    188192}
    189193
     
    191195IMediaPosition_fnCanSeekForward(IMediaPosition* iface,LONG* pCanSeek)
    192196{
    193     CFilterGraph_THIS(iface,mediaposition);
    194 
    195     FIXME("(%p)->() stub!\n",This);
    196 
    197     return E_NOTIMPL;
     197        CFilterGraph_THIS(iface,mediaposition);
     198
     199        FIXME("(%p)->() stub!\n",This);
     200
     201        return E_NOTIMPL;
    198202}
    199203
     
    201205IMediaPosition_fnCanSeekBackward(IMediaPosition* iface,LONG* pCanSeek)
    202206{
    203     CFilterGraph_THIS(iface,mediaposition);
    204 
    205     FIXME("(%p)->() stub!\n",This);
    206 
    207     return E_NOTIMPL;
     207        CFilterGraph_THIS(iface,mediaposition);
     208
     209        FIXME("(%p)->() stub!\n",This);
     210
     211        return E_NOTIMPL;
    208212}
    209213
     
    211215static ICOM_VTABLE(IMediaPosition) imediaposition =
    212216{
    213     ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
    214     /* IUnknown fields */
    215     IMediaPosition_fnQueryInterface,
    216     IMediaPosition_fnAddRef,
    217     IMediaPosition_fnRelease,
    218     /* IDispatch fields */
    219     IMediaPosition_fnGetTypeInfoCount,
    220     IMediaPosition_fnGetTypeInfo,
    221     IMediaPosition_fnGetIDsOfNames,
    222     IMediaPosition_fnInvoke,
    223     /* IMediaPosition fields */
    224     IMediaPosition_fnget_Duration,
    225     IMediaPosition_fnput_CurrentPosition,
    226     IMediaPosition_fnget_CurrentPosition,
    227     IMediaPosition_fnget_StopTime,
    228     IMediaPosition_fnput_StopTime,
    229     IMediaPosition_fnget_PrerollTime,
    230     IMediaPosition_fnput_PrerollTime,
    231     IMediaPosition_fnput_Rate,
    232     IMediaPosition_fnget_Rate,
    233     IMediaPosition_fnCanSeekForward,
    234     IMediaPosition_fnCanSeekBackward,
     217        ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
     218        /* IUnknown fields */
     219        IMediaPosition_fnQueryInterface,
     220        IMediaPosition_fnAddRef,
     221        IMediaPosition_fnRelease,
     222        /* IDispatch fields */
     223        IMediaPosition_fnGetTypeInfoCount,
     224        IMediaPosition_fnGetTypeInfo,
     225        IMediaPosition_fnGetIDsOfNames,
     226        IMediaPosition_fnInvoke,
     227        /* IMediaPosition fields */
     228        IMediaPosition_fnget_Duration,
     229        IMediaPosition_fnput_CurrentPosition,
     230        IMediaPosition_fnget_CurrentPosition,
     231        IMediaPosition_fnget_StopTime,
     232        IMediaPosition_fnput_StopTime,
     233        IMediaPosition_fnget_PrerollTime,
     234        IMediaPosition_fnput_PrerollTime,
     235        IMediaPosition_fnput_Rate,
     236        IMediaPosition_fnget_Rate,
     237        IMediaPosition_fnCanSeekForward,
     238        IMediaPosition_fnCanSeekBackward,
    235239};
    236240
    237241
    238 void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg )
    239 {
    240     TRACE("(%p)\n",pfg);
    241     ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
    242 }
     242HRESULT CFilterGraph_InitIMediaPosition( CFilterGraph* pfg )
     243{
     244        TRACE("(%p)\n",pfg);
     245        ICOM_VTBL(&pfg->mediaposition) = &imediaposition;
     246
     247        return NOERROR;
     248}
     249
     250void CFilterGraph_UninitIMediaPosition( CFilterGraph* pfg )
     251{
     252        TRACE("(%p)\n",pfg);
     253}
Note: See TracChangeset for help on using the changeset viewer.