I have a big graph which has three filters with reference clock. I want to choose push demultiplexer as graph reference clock. My graph plays well in GraphEdit but doesn't play smoothly in my application and I think it's because of reference clock of the graph.
How can I choose a filter as reference clock of my graph?
I have this code but it doesn't work:
IReferenceClock refClock = (IReferenceClock) new SystemClock();
long time;
refClock.GetTime(out time);
IMediaFilter mediaFilter = (IMediaFilter) push_demultiplexer;
mediaFilter.SetSyncSource(refClock);