2 * Implementation of IFilterGraph and related interfaces
3 * + IGraphVersion, IGraphConfig
5 * FIXME - create a thread to process some methods correctly.
8 * FIXME - process Pause/Stop asynchronously and notify when completed.
11 * hidenori@a2.ctktv.ne.jp
27 #include "debugtools.h"
28 DEFAULT_DEBUG_CHANNEL(quartz);
30 #include "quartz_private.h"
36 static HRESULT CFilterGraph_DisconnectAllPins( IBaseFilter* pFilter )
38 IEnumPins* pEnum = NULL;
44 hr = IBaseFilter_EnumPins( pFilter, &pEnum );
54 hr = IEnumPins_Next( pEnum, 1, &pPin, &cFetched );
57 if ( hr != NOERROR || pPin == NULL || cFetched != 1 )
64 hr = IPin_ConnectedTo(pPin,&pConnTo);
65 if ( hr == NOERROR && pConnTo != NULL )
67 IPin_Disconnect(pPin);
68 IPin_Disconnect(pConnTo);
69 IPin_Release(pConnTo);
75 IEnumPins_Release( pEnum );
81 static HRESULT CFilterGraph_GraphChanged( CFilterGraph* This )
83 /* IDistributorNotify_NotifyGraphChange() */
85 IMediaEventSink_Notify(CFilterGraph_IMediaEventSink(This),
86 EC_GRAPH_CHANGED, 0, 0);
87 This->m_lGraphVersion ++;
93 /***************************************************************************
95 * CFilterGraph::IFilterGraph2 methods
100 IFilterGraph2_fnQueryInterface(IFilterGraph2* iface,REFIID riid,void** ppobj)
102 CFilterGraph_THIS(iface,fgraph);
104 TRACE("(%p)->()\n",This);
106 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
110 IFilterGraph2_fnAddRef(IFilterGraph2* iface)
112 CFilterGraph_THIS(iface,fgraph);
114 TRACE("(%p)->()\n",This);
116 return IUnknown_AddRef(This->unk.punkControl);
120 IFilterGraph2_fnRelease(IFilterGraph2* iface)
122 CFilterGraph_THIS(iface,fgraph);
124 TRACE("(%p)->()\n",This);
126 return IUnknown_Release(This->unk.punkControl);
129 static HRESULT WINAPI
130 IFilterGraph2_fnAddFilter(IFilterGraph2* iface,IBaseFilter* pFilter, LPCWSTR pName)
132 CFilterGraph_THIS(iface,fgraph);
136 HRESULT hrSucceeded = S_OK;
137 QUARTZ_CompListItem* pItem;
140 TRACE( "(%p)->(%p,%s)\n",This,pFilter,debugstr_w(pName) );
142 QUARTZ_CompList_Lock( This->m_pFilterList );
144 hr = IMediaFilter_GetState(CFilterGraph_IMediaFilter(This),0,&fs);
145 if ( hr == VFW_S_STATE_INTERMEDIATE )
146 hr = VFW_E_STATE_CHANGED;
147 if ( fs != State_Stopped )
148 hr = VFW_E_NOT_STOPPED;
152 TRACE( "(%p) search the specified name.\n",This );
156 pItem = QUARTZ_CompList_SearchData(
158 pName, sizeof(WCHAR)*(lstrlenW(pName)+1) );
162 hrSucceeded = VFW_S_DUPLICATE_NAME;
164 iLen = lstrlenW(pName);
167 memcpy( info.achName, pName, sizeof(WCHAR)*iLen );
168 info.achName[iLen] = 0;
172 ZeroMemory( &info, sizeof(info) );
173 hr = IBaseFilter_QueryFilterInfo( pFilter, &info );
177 iLen = lstrlenW(info.achName);
178 pItem = QUARTZ_CompList_SearchData(
180 info.achName, sizeof(WCHAR)*(iLen+1) );
183 pName = info.achName;
188 /* generate modified names for this filter.. */
189 iLen = lstrlenW(info.achName);
192 info.achName[iLen++] = ' ';
194 for ( i = 0; i <= 99; i++ )
196 info.achName[iLen+0] = (i%10) + '0';
197 info.achName[iLen+1] = ((i/10)%10) + '0';
198 info.achName[iLen+2] = 0;
199 pItem = QUARTZ_CompList_SearchData(
201 info.achName, sizeof(WCHAR)*(iLen+3) );
204 pName = info.achName;
209 hr = ( pName == NULL ) ? E_FAIL : VFW_E_DUPLICATE_NAME;
213 TRACE( "(%p) add this filter.\n",This );
215 /* register this filter. */
216 hr = QUARTZ_CompList_AddComp(
217 This->m_pFilterList, (IUnknown*)pFilter,
218 pName, sizeof(WCHAR)*(lstrlenW(pName)+1) );
222 hr = IBaseFilter_JoinFilterGraph(pFilter,(IFilterGraph*)iface,pName);
225 EnterCriticalSection( &This->m_csClock );
226 hr = IBaseFilter_SetSyncSource( pFilter, This->m_pClock );
227 LeaveCriticalSection( &This->m_csClock );
231 IBaseFilter_JoinFilterGraph(pFilter,NULL,pName);
232 QUARTZ_CompList_RemoveComp(
233 This->m_pFilterList,(IUnknown*)pFilter);
237 hr = CFilterGraph_GraphChanged(This);
243 QUARTZ_CompList_Unlock( This->m_pFilterList );
245 TRACE( "(%p) return %08lx\n", This, hr );
250 static HRESULT WINAPI
251 IFilterGraph2_fnRemoveFilter(IFilterGraph2* iface,IBaseFilter* pFilter)
253 CFilterGraph_THIS(iface,fgraph);
254 QUARTZ_CompListItem* pItem;
256 HRESULT hr = NOERROR;
258 TRACE( "(%p)->(%p)\n",This,pFilter );
260 QUARTZ_CompList_Lock( This->m_pFilterList );
262 hr = IMediaFilter_GetState(CFilterGraph_IMediaFilter(This),0,&fs);
263 if ( hr == VFW_S_STATE_INTERMEDIATE )
264 hr = VFW_E_STATE_CHANGED;
265 if ( fs != State_Stopped )
266 hr = VFW_E_NOT_STOPPED;
270 hr = S_FALSE; /* FIXME? */
271 pItem = QUARTZ_CompList_SearchComp(
272 This->m_pFilterList, (IUnknown*)pFilter );
275 CFilterGraph_DisconnectAllPins(pFilter);
276 IBaseFilter_SetSyncSource( pFilter, NULL );
277 hr = IBaseFilter_JoinFilterGraph(
278 pFilter, NULL, QUARTZ_CompList_GetDataPtr(pItem) );
279 QUARTZ_CompList_RemoveComp(
280 This->m_pFilterList, (IUnknown*)pFilter );
283 hr = CFilterGraph_GraphChanged(This);
288 QUARTZ_CompList_Unlock( This->m_pFilterList );
293 static HRESULT WINAPI
294 IFilterGraph2_fnEnumFilters(IFilterGraph2* iface,IEnumFilters** ppEnum)
296 CFilterGraph_THIS(iface,fgraph);
299 TRACE( "(%p)->(%p)\n",This,ppEnum );
301 QUARTZ_CompList_Lock( This->m_pFilterList );
303 hr = QUARTZ_CreateEnumUnknown(
304 &IID_IEnumFilters, (void**)ppEnum, This->m_pFilterList );
306 QUARTZ_CompList_Unlock( This->m_pFilterList );
311 static HRESULT WINAPI
312 IFilterGraph2_fnFindFilterByName(IFilterGraph2* iface,LPCWSTR pName,IBaseFilter** ppFilter)
314 CFilterGraph_THIS(iface,fgraph);
315 QUARTZ_CompListItem* pItem;
318 TRACE( "(%p)->(%s,%p)\n",This,debugstr_w(pName),ppFilter );
320 if ( ppFilter == NULL )
324 QUARTZ_CompList_Lock( This->m_pFilterList );
326 pItem = QUARTZ_CompList_SearchData(
328 pName, sizeof(WCHAR)*(lstrlenW(pName)+1) );
331 *ppFilter = (IBaseFilter*)QUARTZ_CompList_GetItemPtr(pItem);
335 QUARTZ_CompList_Unlock( This->m_pFilterList );
340 static HRESULT WINAPI
341 IFilterGraph2_fnConnectDirect(IFilterGraph2* iface,IPin* pOut,IPin* pIn,const AM_MEDIA_TYPE* pmt)
343 CFilterGraph_THIS(iface,fgraph);
348 FILTER_INFO finfoOut;
352 TRACE( "(%p)->(%p,%p,%p)\n",This,pOut,pIn,pmt );
354 infoIn.pFilter = NULL;
355 infoOut.pFilter = NULL;
356 finfoIn.pGraph = NULL;
357 finfoOut.pGraph = NULL;
359 QUARTZ_CompList_Lock( This->m_pFilterList );
361 hr = IMediaFilter_GetState(CFilterGraph_IMediaFilter(This),0,&fs);
362 if ( hr == VFW_S_STATE_INTERMEDIATE )
363 hr = VFW_E_STATE_CHANGED;
364 if ( fs != State_Stopped )
365 hr = VFW_E_NOT_STOPPED;
369 hr = IPin_QueryPinInfo(pIn,&infoIn);
372 hr = IPin_QueryPinInfo(pOut,&infoOut);
375 if ( infoIn.pFilter == NULL || infoOut.pFilter == NULL ||
376 infoIn.dir != PINDIR_INPUT || infoOut.dir != PINDIR_OUTPUT )
382 hr = IBaseFilter_QueryFilterInfo(infoIn.pFilter,&finfoIn);
385 hr = IBaseFilter_QueryFilterInfo(infoOut.pFilter,&finfoOut);
388 if ( finfoIn.pGraph != ((IFilterGraph*)iface) ||
389 finfoOut.pGraph != ((IFilterGraph*)iface) )
396 hr = IPin_ConnectedTo(pIn,&pConnTo);
397 if ( hr == NOERROR && pConnTo != NULL )
399 IPin_Release(pConnTo);
400 hr = VFW_E_ALREADY_CONNECTED;
405 hr = IPin_ConnectedTo(pOut,&pConnTo);
406 if ( hr == NOERROR && pConnTo != NULL )
408 IPin_Release(pConnTo);
409 hr = VFW_E_ALREADY_CONNECTED;
413 TRACE("(%p) try to connect %p<->%p\n",This,pIn,pOut);
414 hr = IPin_Connect(pOut,pIn,pmt);
417 TRACE("(%p)->Connect(%p,%p) hr = %08lx\n",pOut,pIn,pmt,hr);
418 IPin_Disconnect(pOut);
419 IPin_Disconnect(pIn);
423 hr = CFilterGraph_GraphChanged(This);
428 QUARTZ_CompList_Unlock( This->m_pFilterList );
430 if ( infoIn.pFilter != NULL )
431 IBaseFilter_Release(infoIn.pFilter);
432 if ( infoOut.pFilter != NULL )
433 IBaseFilter_Release(infoOut.pFilter);
434 if ( finfoIn.pGraph != NULL )
435 IFilterGraph_Release(finfoIn.pGraph);
436 if ( finfoOut.pGraph != NULL )
437 IFilterGraph_Release(finfoOut.pGraph);
442 static HRESULT WINAPI
443 IFilterGraph2_fnReconnect(IFilterGraph2* iface,IPin* pPin)
445 CFilterGraph_THIS(iface,fgraph);
447 TRACE( "(%p)->(%p)\n",This,pPin );
449 return IFilterGraph2_ReconnectEx(iface,pPin,NULL);
452 static HRESULT WINAPI
453 IFilterGraph2_fnDisconnect(IFilterGraph2* iface,IPin* pPin)
455 CFilterGraph_THIS(iface,fgraph);
459 TRACE( "(%p)->(%p)\n",This,pPin );
461 QUARTZ_CompList_Lock( This->m_pFilterList );
464 hr = IPin_ConnectedTo(pPin,&pConnTo);
465 if ( hr == NOERROR && pConnTo != NULL )
467 IPin_Disconnect(pConnTo);
468 IPin_Release(pConnTo);
470 hr = IPin_Disconnect(pPin);
474 hr = CFilterGraph_GraphChanged(This);
479 QUARTZ_CompList_Unlock( This->m_pFilterList );
484 static HRESULT WINAPI
485 IFilterGraph2_fnSetDefaultSyncSource(IFilterGraph2* iface)
487 CFilterGraph_THIS(iface,fgraph);
489 IReferenceClock* pClock;
492 FIXME( "(%p)->() stub!\n", This );
494 /* FIXME - search all filters from renderer. */
496 hr = QUARTZ_CreateSystemClock( NULL, (void**)&punk );
499 hr = IUnknown_QueryInterface( punk, &IID_IReferenceClock, (void**)&pClock ); IUnknown_Release( punk );
503 hr = IMediaFilter_SetSyncSource(
504 CFilterGraph_IMediaFilter(This), pClock );
505 IReferenceClock_Release( pClock );
510 static HRESULT WINAPI
511 IFilterGraph2_fnConnect(IFilterGraph2* iface,IPin* pOut,IPin* pIn)
513 CFilterGraph_THIS(iface,fgraph);
516 TRACE( "(%p)->(%p,%p)\n",This,pOut,pIn );
518 /* At first, try to connect directly. */
519 hr = IFilterGraph_ConnectDirect(iface,pOut,pIn,NULL);
523 /* FIXME - try to connect indirectly. */
524 FIXME( "(%p)->(%p,%p) stub!\n",This,pOut,pIn );
530 static HRESULT WINAPI
531 IFilterGraph2_fnRender(IFilterGraph2* iface,IPin* pOut)
533 CFilterGraph_THIS(iface,fgraph);
535 FIXME( "(%p)->(%p) stub!\n",This,pOut );
539 static HRESULT WINAPI
540 IFilterGraph2_fnRenderFile(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpPlayList)
542 CFilterGraph_THIS(iface,fgraph);
544 IBaseFilter* pFilter = NULL;
545 IEnumPins* pEnum = NULL;
552 TRACE( "(%p)->(%s,%s)\n",This,
553 debugstr_w(lpFileName),debugstr_w(lpPlayList) );
555 if ( lpPlayList != NULL )
559 hr = IFilterGraph2_AddSourceFilter(iface,lpFileName,NULL,&pFilter);
562 if ( pFilter == NULL )
568 hr = IBaseFilter_EnumPins( pFilter, &pEnum );
584 hr = IEnumPins_Next( pEnum, 1, &pPin, &cFetched );
587 if ( hr != NOERROR || pPin == NULL || cFetched != 1 )
592 hr = IPin_QueryDirection( pPin, &dir );
593 if ( hr == NOERROR && dir == PINDIR_OUTPUT )
596 hr = IFilterGraph2_Render( iface, pPin );
600 IPin_Release( pPin );
605 if ( cTryToRender > cActRender )
606 hr = VFW_S_PARTIAL_RENDER;
607 if ( cActRender == 0 )
613 IEnumPins_Release( pEnum );
614 if ( pFilter != NULL )
615 IBaseFilter_Release( pFilter );
620 static HRESULT WINAPI
621 IFilterGraph2_fnAddSourceFilter(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpFilterName,IBaseFilter** ppBaseFilter)
623 CFilterGraph_THIS(iface,fgraph);
625 FIXME( "(%p)->(%s,%s,%p) stub!\n",This,
626 debugstr_w(lpFileName),debugstr_w(lpFilterName),ppBaseFilter );
630 static HRESULT WINAPI
631 IFilterGraph2_fnSetLogFile(IFilterGraph2* iface,DWORD_PTR hFile)
633 CFilterGraph_THIS(iface,fgraph);
635 FIXME( "(%p)->() stub!\n", This );
639 static HRESULT WINAPI
640 IFilterGraph2_fnAbort(IFilterGraph2* iface)
642 CFilterGraph_THIS(iface,fgraph);
646 FIXME( "(%p)->() stub!\n", This );
650 static HRESULT WINAPI
651 IFilterGraph2_fnShouldOperationContinue(IFilterGraph2* iface)
653 CFilterGraph_THIS(iface,fgraph);
657 FIXME( "(%p)->() stub!\n", This );
661 static HRESULT WINAPI
662 IFilterGraph2_fnAddSourceFilterForMoniker(IFilterGraph2* iface,IMoniker* pMon,IBindCtx* pCtx,LPCWSTR pFilterName,IBaseFilter** ppFilter)
664 CFilterGraph_THIS(iface,fgraph);
666 FIXME( "(%p)->() stub!\n", This );
670 static HRESULT WINAPI
671 IFilterGraph2_fnReconnectEx(IFilterGraph2* iface,IPin* pPin,const AM_MEDIA_TYPE* pmt)
673 CFilterGraph_THIS(iface,fgraph);
676 FIXME( "(%p)->(%p,%p) stub!\n",This,pPin,pmt );
678 /* reconnect asynchronously. */
680 QUARTZ_CompList_Lock( This->m_pFilterList );
681 hr = CFilterGraph_GraphChanged(This);
682 QUARTZ_CompList_Unlock( This->m_pFilterList );
687 static HRESULT WINAPI
688 IFilterGraph2_fnRenderEx(IFilterGraph2* iface,IPin* pPin,DWORD dwParam1,DWORD* pdwParam2)
690 CFilterGraph_THIS(iface,fgraph);
693 FIXME( "(%p)->(%p,%08lx,%p) stub!\n",This,pPin,dwParam1,pdwParam2);
700 static ICOM_VTABLE(IFilterGraph2) ifgraph =
702 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
703 /* IUnknown fields */
704 IFilterGraph2_fnQueryInterface,
705 IFilterGraph2_fnAddRef,
706 IFilterGraph2_fnRelease,
707 /* IFilterGraph fields */
708 IFilterGraph2_fnAddFilter,
709 IFilterGraph2_fnRemoveFilter,
710 IFilterGraph2_fnEnumFilters,
711 IFilterGraph2_fnFindFilterByName,
712 IFilterGraph2_fnConnectDirect,
713 IFilterGraph2_fnReconnect,
714 IFilterGraph2_fnDisconnect,
715 IFilterGraph2_fnSetDefaultSyncSource,
716 /* IGraphBuilder fields */
717 IFilterGraph2_fnConnect,
718 IFilterGraph2_fnRender,
719 IFilterGraph2_fnRenderFile,
720 IFilterGraph2_fnAddSourceFilter,
721 IFilterGraph2_fnSetLogFile,
722 IFilterGraph2_fnAbort,
723 IFilterGraph2_fnShouldOperationContinue,
724 /* IFilterGraph2 fields */
725 IFilterGraph2_fnAddSourceFilterForMoniker,
726 IFilterGraph2_fnReconnectEx,
727 IFilterGraph2_fnRenderEx,
730 HRESULT CFilterGraph_InitIFilterGraph2( CFilterGraph* pfg )
733 ICOM_VTBL(&pfg->fgraph) = &ifgraph;
735 pfg->m_pFilterList = QUARTZ_CompList_Alloc();
736 if ( pfg->m_pFilterList == NULL )
737 return E_OUTOFMEMORY;
742 void CFilterGraph_UninitIFilterGraph2( CFilterGraph* pfg )
744 QUARTZ_CompListItem* pItem;
748 /* remove all filters... */
751 pItem = QUARTZ_CompList_GetFirst( pfg->m_pFilterList );
754 IFilterGraph2_RemoveFilter(
755 (IFilterGraph2*)(&pfg->fgraph),
756 (IBaseFilter*)QUARTZ_CompList_GetItemPtr(pItem) );
759 QUARTZ_CompList_Free( pfg->m_pFilterList );
762 /***************************************************************************
764 * CFilterGraph::IGraphVersion methods
768 static HRESULT WINAPI
769 IGraphVersion_fnQueryInterface(IGraphVersion* iface,REFIID riid,void** ppobj)
771 CFilterGraph_THIS(iface,graphversion);
773 TRACE("(%p)->()\n",This);
775 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
779 IGraphVersion_fnAddRef(IGraphVersion* iface)
781 CFilterGraph_THIS(iface,graphversion);
783 TRACE("(%p)->()\n",This);
785 return IUnknown_AddRef(This->unk.punkControl);
789 IGraphVersion_fnRelease(IGraphVersion* iface)
791 CFilterGraph_THIS(iface,graphversion);
793 TRACE("(%p)->()\n",This);
795 return IUnknown_Release(This->unk.punkControl);
799 static HRESULT WINAPI
800 IGraphVersion_fnQueryVersion(IGraphVersion* iface,LONG* plVersion)
802 CFilterGraph_THIS(iface,graphversion);
804 TRACE("(%p)->(%p)\n",This,plVersion);
806 if ( plVersion == NULL )
809 QUARTZ_CompList_Lock( This->m_pFilterList );
810 *plVersion = This->m_lGraphVersion;
811 QUARTZ_CompList_Unlock( This->m_pFilterList );
817 static ICOM_VTABLE(IGraphVersion) igraphversion =
819 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
820 /* IUnknown fields */
821 IGraphVersion_fnQueryInterface,
822 IGraphVersion_fnAddRef,
823 IGraphVersion_fnRelease,
824 /* IGraphVersion fields */
825 IGraphVersion_fnQueryVersion,
830 HRESULT CFilterGraph_InitIGraphVersion( CFilterGraph* pfg )
833 ICOM_VTBL(&pfg->graphversion) = &igraphversion;
835 pfg->m_lGraphVersion = 1;
840 void CFilterGraph_UninitIGraphVersion( CFilterGraph* pfg )
845 /***************************************************************************
847 * CFilterGraph::IGraphConfig methods
851 static HRESULT WINAPI
852 IGraphConfig_fnQueryInterface(IGraphConfig* iface,REFIID riid,void** ppobj)
854 CFilterGraph_THIS(iface,grphconf);
856 TRACE("(%p)->()\n",This);
858 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
862 IGraphConfig_fnAddRef(IGraphConfig* iface)
864 CFilterGraph_THIS(iface,grphconf);
866 TRACE("(%p)->()\n",This);
868 return IUnknown_AddRef(This->unk.punkControl);
872 IGraphConfig_fnRelease(IGraphConfig* iface)
874 CFilterGraph_THIS(iface,grphconf);
876 TRACE("(%p)->()\n",This);
878 return IUnknown_Release(This->unk.punkControl);
883 static HRESULT WINAPI
884 IGraphConfig_fnReconnect(IGraphConfig* iface,IPin* pOut,IPin* pIn,const AM_MEDIA_TYPE* pmt,IBaseFilter* pFilter,HANDLE hAbort,DWORD dwFlags)
886 CFilterGraph_THIS(iface,grphconf);
888 FIXME("(%p)->() stub!\n",This);
893 static HRESULT WINAPI
894 IGraphConfig_fnReconfigure(IGraphConfig* iface,IGraphConfigCallback* pCallback,PVOID pvParam,DWORD dwFlags,HANDLE hAbort)
896 CFilterGraph_THIS(iface,grphconf);
899 FIXME("(%p)->(%p,%p,%08lx,%08x) stub!\n",This,pCallback,pvParam,dwFlags,hAbort);
901 QUARTZ_CompList_Lock( This->m_pFilterList );
902 EnterCriticalSection( &This->m_csGraphState );
904 hr = IGraphConfigCallback_Reconfigure(pCallback,pvParam,dwFlags);
906 LeaveCriticalSection( &This->m_csGraphState );
907 QUARTZ_CompList_Unlock( This->m_pFilterList );
912 static HRESULT WINAPI
913 IGraphConfig_fnAddFilterToCache(IGraphConfig* iface,IBaseFilter* pFilter)
915 CFilterGraph_THIS(iface,grphconf);
917 FIXME("(%p)->() stub!\n",This);
922 static HRESULT WINAPI
923 IGraphConfig_fnEnumCacheFilter(IGraphConfig* iface,IEnumFilters** ppenum)
925 CFilterGraph_THIS(iface,grphconf);
927 FIXME("(%p)->() stub!\n",This);
932 static HRESULT WINAPI
933 IGraphConfig_fnRemoveFilterFromCache(IGraphConfig* iface,IBaseFilter* pFilter)
935 CFilterGraph_THIS(iface,grphconf);
937 FIXME("(%p)->() stub!\n",This);
942 static HRESULT WINAPI
943 IGraphConfig_fnGetStartTime(IGraphConfig* iface,REFERENCE_TIME* prt)
945 CFilterGraph_THIS(iface,grphconf);
947 FIXME("(%p)->() stub!\n",This);
952 static HRESULT WINAPI
953 IGraphConfig_fnPushThroughData(IGraphConfig* iface,IPin* pOut,IPinConnection* pConn,HANDLE hAbort)
955 CFilterGraph_THIS(iface,grphconf);
957 FIXME("(%p)->() stub!\n",This);
962 static HRESULT WINAPI
963 IGraphConfig_fnSetFilterFlags(IGraphConfig* iface,IBaseFilter* pFilter,DWORD dwFlags)
965 CFilterGraph_THIS(iface,grphconf);
967 FIXME("(%p)->() stub!\n",This);
972 static HRESULT WINAPI
973 IGraphConfig_fnGetFilterFlags(IGraphConfig* iface,IBaseFilter* pFilter,DWORD* pdwFlags)
975 CFilterGraph_THIS(iface,grphconf);
977 FIXME("(%p)->() stub!\n",This);
982 static HRESULT WINAPI
983 IGraphConfig_fnRemoveFilterEx(IGraphConfig* iface,IBaseFilter* pFilter,DWORD dwFlags)
985 CFilterGraph_THIS(iface,grphconf);
987 FIXME("(%p)->() stub!\n",This);
996 static ICOM_VTABLE(IGraphConfig) igraphconfig =
998 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
999 /* IUnknown fields */
1000 IGraphConfig_fnQueryInterface,
1001 IGraphConfig_fnAddRef,
1002 IGraphConfig_fnRelease,
1003 /* IGraphConfig fields */
1004 IGraphConfig_fnReconnect,
1005 IGraphConfig_fnReconfigure,
1006 IGraphConfig_fnAddFilterToCache,
1007 IGraphConfig_fnEnumCacheFilter,
1008 IGraphConfig_fnRemoveFilterFromCache,
1009 IGraphConfig_fnGetStartTime,
1010 IGraphConfig_fnPushThroughData,
1011 IGraphConfig_fnSetFilterFlags,
1012 IGraphConfig_fnGetFilterFlags,
1013 IGraphConfig_fnRemoveFilterEx,
1018 HRESULT CFilterGraph_InitIGraphConfig( CFilterGraph* pfg )
1020 TRACE("(%p)\n",pfg);
1021 ICOM_VTBL(&pfg->grphconf) = &igraphconfig;
1026 void CFilterGraph_UninitIGraphConfig( CFilterGraph* pfg )
1028 TRACE("(%p)\n",pfg);