Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. What causes the DirectShow EC_COMPLETE event to be set

What causes the DirectShow EC_COMPLETE event to be set

Scheduled Pinned Locked Moved Graphics
data-structureshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yair Han
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • Y Yair Han

      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

      T Offline
      T Offline
      tanvon malik
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups