Changeset 6710 for trunk/src/quartz/impos.c
- Timestamp:
- Sep 15, 2001, 11:28:23 AM (24 years ago)
- 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 $ */2 1 /* 3 2 * Implementation of IMediaPosition for FilterGraph. … … 30 29 IMediaPosition_fnQueryInterface(IMediaPosition* iface,REFIID riid,void** ppobj) 31 30 { 32 33 34 35 36 31 CFilterGraph_THIS(iface,mediaposition); 32 33 TRACE("(%p)->()\n",This); 34 35 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 36 } 38 37 … … 40 39 IMediaPosition_fnAddRef(IMediaPosition* iface) 41 40 { 42 43 44 45 46 41 CFilterGraph_THIS(iface,mediaposition); 42 43 TRACE("(%p)->()\n",This); 44 45 return IUnknown_AddRef(This->unk.punkControl); 47 46 } 48 47 … … 50 49 IMediaPosition_fnRelease(IMediaPosition* iface) 51 50 { 52 53 54 55 56 51 CFilterGraph_THIS(iface,mediaposition); 52 53 TRACE("(%p)->()\n",This); 54 55 return IUnknown_Release(This->unk.punkControl); 57 56 } 58 57 … … 60 59 IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo) 61 60 { 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); 67 67 } 68 68 … … 70 70 IMediaPosition_fnGetTypeInfo(IMediaPosition* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 71 71 { 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); 77 78 } 78 79 … … 80 81 IMediaPosition_fnGetIDsOfNames(IMediaPosition* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 81 82 { 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); 87 89 } 88 90 … … 90 92 IMediaPosition_fnInvoke(IMediaPosition* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 91 93 { 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); 97 101 } 98 102 … … 101 105 IMediaPosition_fnget_Duration(IMediaPosition* iface,REFTIME* prefTime) 102 106 { 103 104 105 106 107 107 CFilterGraph_THIS(iface,mediaposition); 108 109 FIXME("(%p)->() stub!\n",This); 110 111 return E_NOTIMPL; 108 112 } 109 113 … … 111 115 IMediaPosition_fnput_CurrentPosition(IMediaPosition* iface,REFTIME refTime) 112 116 { 113 114 115 116 117 117 CFilterGraph_THIS(iface,mediaposition); 118 119 FIXME("(%p)->() stub!\n",This); 120 121 return E_NOTIMPL; 118 122 } 119 123 … … 121 125 IMediaPosition_fnget_CurrentPosition(IMediaPosition* iface,REFTIME* prefTime) 122 126 { 123 124 125 126 127 127 CFilterGraph_THIS(iface,mediaposition); 128 129 FIXME("(%p)->() stub!\n",This); 130 131 return E_NOTIMPL; 128 132 } 129 133 … … 131 135 IMediaPosition_fnget_StopTime(IMediaPosition* iface,REFTIME* prefTime) 132 136 { 133 134 135 136 137 137 CFilterGraph_THIS(iface,mediaposition); 138 139 FIXME("(%p)->() stub!\n",This); 140 141 return E_NOTIMPL; 138 142 } 139 143 … … 141 145 IMediaPosition_fnput_StopTime(IMediaPosition* iface,REFTIME refTime) 142 146 { 143 144 145 146 147 147 CFilterGraph_THIS(iface,mediaposition); 148 149 FIXME("(%p)->() stub!\n",This); 150 151 return E_NOTIMPL; 148 152 } 149 153 … … 151 155 IMediaPosition_fnget_PrerollTime(IMediaPosition* iface,REFTIME* prefTime) 152 156 { 153 154 155 156 157 157 CFilterGraph_THIS(iface,mediaposition); 158 159 FIXME("(%p)->() stub!\n",This); 160 161 return E_NOTIMPL; 158 162 } 159 163 … … 161 165 IMediaPosition_fnput_PrerollTime(IMediaPosition* iface,REFTIME refTime) 162 166 { 163 164 165 166 167 167 CFilterGraph_THIS(iface,mediaposition); 168 169 FIXME("(%p)->() stub!\n",This); 170 171 return E_NOTIMPL; 168 172 } 169 173 … … 171 175 IMediaPosition_fnput_Rate(IMediaPosition* iface,double dblRate) 172 176 { 173 174 175 176 177 177 CFilterGraph_THIS(iface,mediaposition); 178 179 FIXME("(%p)->() stub!\n",This); 180 181 return E_NOTIMPL; 178 182 } 179 183 … … 181 185 IMediaPosition_fnget_Rate(IMediaPosition* iface,double* pdblRate) 182 186 { 183 184 185 186 187 187 CFilterGraph_THIS(iface,mediaposition); 188 189 FIXME("(%p)->() stub!\n",This); 190 191 return E_NOTIMPL; 188 192 } 189 193 … … 191 195 IMediaPosition_fnCanSeekForward(IMediaPosition* iface,LONG* pCanSeek) 192 196 { 193 194 195 196 197 197 CFilterGraph_THIS(iface,mediaposition); 198 199 FIXME("(%p)->() stub!\n",This); 200 201 return E_NOTIMPL; 198 202 } 199 203 … … 201 205 IMediaPosition_fnCanSeekBackward(IMediaPosition* iface,LONG* pCanSeek) 202 206 { 203 204 205 206 207 207 CFilterGraph_THIS(iface,mediaposition); 208 209 FIXME("(%p)->() stub!\n",This); 210 211 return E_NOTIMPL; 208 212 } 209 213 … … 211 215 static ICOM_VTABLE(IMediaPosition) imediaposition = 212 216 { 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 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, 235 239 }; 236 240 237 241 238 void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg ) 239 { 240 TRACE("(%p)\n",pfg); 241 ICOM_VTBL(&pfg->mediaposition) = &imediaposition; 242 } 242 HRESULT CFilterGraph_InitIMediaPosition( CFilterGraph* pfg ) 243 { 244 TRACE("(%p)\n",pfg); 245 ICOM_VTBL(&pfg->mediaposition) = &imediaposition; 246 247 return NOERROR; 248 } 249 250 void CFilterGraph_UninitIMediaPosition( CFilterGraph* pfg ) 251 { 252 TRACE("(%p)\n",pfg); 253 }
Note:
See TracChangeset
for help on using the changeset viewer.