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. C / C++ / MFC
  4. IAMStreamControl StartAt() doesn't work [modified]

IAMStreamControl StartAt() doesn't work [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestion
1 Posts 1 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.
  • L Offline
    L Offline
    liur17
    wrote on last edited by
    #1

    I want to control the avi write action by query the IAMStreamControl interface of input pin in pAviMux, see below: IAMStreamControl *pSC = NULL; hr = pMuxPin01->QueryInterface(IID_IAMStreamControl, (void **)&pSC); hr = pSC->StartAt(&rtStart, 0); //rtStart = 3 seconds hr = pSC->StopAt(&rtStop, FALSE, 0); //rtStop = 9 seconds hr = pMediaControl->Run(); when I set the parameter of StartAt() as NULL, it works OK, the pMuxAvi stop the writing at rtStop time. however, when I give a rtStart parameter to StartAt() function, the pMuxAvi write a corrupt avi file which is only 127kb in size. what's wrong with the StartAt() function? please help. -- modified at 6:02 Saturday 14th July, 2007

    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