- Posts: 4
- Joined: Sun Feb 19, 2023 9:40 am
- Real Name: Andrey Korobeynikov
In fact - the problem is solved already. The problem is in a memory manager.
In callback procedure I copied raw video data from input frame to newly got memory (with GetMem) and then save it to queue. And I suppose - if second callback is happened in exactly same time - memory manager can't allocate memory for new frame, so I get callback with nil as data.
So I created intermediate queue - saved original video/audio frames from callback to this queue and then separate thread converts this data to raw data frames. And now I don't have any problems with missed frames.