TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

Notices

DirectShow - why isn't Fillbuffer called

Programming


Reply
 
Thread Tools Display Modes
Old 26-01-2009, 06:42 PM   #1
Newbie
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 mechi is an unknown quantity at this point


OS: Windows XP


Hi!
I've learnt alot on this site.
I'm writing my own source filter which is based on Vivek's VCam (from TMH's site). I'm also using the SDK's Ball example. From both of these samples I see that CSourceStream calls the filter's FillBuffer routine.

Once I started to run my filter and have the camera send frames (over the USB), I want for each frame to call the FillBuffer. At the moment the FillBuffer isn't getting called at all. I went into the source.cpp code (definition of CSourceStream) but i couldn't figure out what is the trigger for calling FillBuffer.

Any help would be appreciated.
Thanks,
Mechi

Hi!
OK - I figured out that FillBuffer isn't called cuz my filter didn't start previewing (pMC->Run() from Amcap wasn't called).
But I still ask - once I start Previewing and Capturing, how can I call Fillbuffer with the new sample?
Mechi

FillBuffer is called automatically with data from buffer once pControl->Run() is called

Last edited by bakuryu; 04-03-2009 at 05:50 PM..
mechi is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 04:39 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional