I'm not an expert on planar video formats, but I tried out your code anyway and noticed that if I pass a non-NULL value as the dataPtr parameter then the callback gets called.
Jamie. On 5 Jan 2014, at 11:04, Matthieu Bouron <matthieu.bou...@gmail.com> wrote: > On Mon, Nov 25, 2013 at 12:45 PM, Matthieu Bouron <matthieu.bou...@gmail.com >> wrote: > >> >> On Sun, Nov 10, 2013 at 10:50 PM, Matthieu Bouron < >> matthieu.bou...@gmail.com> wrote: >> >>> Hello, >>> >>> First of all, sorry in advance if i'm not addressing the right mailing >>> list. >>> >>> I'm currently using the CVPixelBufferRef API and more precisely >>> the CVPixelBufferCreateWithPlanarBytes function so I can use my own video >>> buffers. >>> >>> This function let the user provide a callback so the user can provide >>> a function to free its buffer on release. However I can't get my own >>> callback to be executed which leads to severe memory leaks in my >>> application. >>> >>> You can find attached to this email, an example to reproduce the issue. >>> Note that the first example with CVPixelBufferCreateWithBytes works but >>> the CVPixelBufferCreateWithPlanarBytes one don't. >>> Maybe i'm missing something ? >>> >>> I'm facing this issue on OSX 10.9. >>> >>> To compile the example: >>> gcc -framework CoreVideo test_cvbuffer.m -o test_cvbuffer >>> >>> Thanks in advance for your help. >>> >> >> ping >> >> > Any comments on this issue ? > > Best regards, > Matthieu > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/jamie%40montgomerie.net > > This email sent to ja...@montgomerie.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com