سؤال

I created a graph which has two SampleGrabbers. When I want to set callback function, I use this code for both SampleGrabbers:

SetCallback(this, 1);

Both SampleGrabbers use my BufferCB function. When I get a frame in BufferCB function, how can I understand that frame is for first SampleGrabber or the second one?

Any idea?

Thanks

هل كانت مفيدة؟

المحلول

To distinguish between grabbers you need to have different instances of the object you implement your callback on.

See more: Using multiple sample grabbers.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top