What causes the DirectShow EC_COMPLETE event to be set
-
Hi all, I have a problem that the directshow graph signals complete before the source file has ended. The code looks like this: while (nCode != EC_COMPLETE) { pMediaEvent->WaitForCompletion(1000, &nCode); .... } pMediaControl->StopWhenReady() So, when I am getting the EC_COMPLETE from the graph I stop it. The only problem is that the encoding still in progress and the file is still (half) full. I realy want to know how this event works? Who/What signals it? Is it a Mux/sink filter responsibility or the source filter/Demux responsibility? Thanks, Y
-
Hi all, I have a problem that the directshow graph signals complete before the source file has ended. The code looks like this: while (nCode != EC_COMPLETE) { pMediaEvent->WaitForCompletion(1000, &nCode); .... } pMediaControl->StopWhenReady() So, when I am getting the EC_COMPLETE from the graph I stop it. The only problem is that the encoding still in progress and the file is still (half) full. I realy want to know how this event works? Who/What signals it? Is it a Mux/sink filter responsibility or the source filter/Demux responsibility? Thanks, Y
HI check for EC_ERRORABORT also The filter grapg manager sends this notification to the application when all streams are completely rendered.
tanvon malik http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055