txproto icon indicating copy to clipboard operation
txproto copied to clipboard

libtxproto: Add free'd callback on tx_io_register_cb

Open rofferom opened this issue 2 years ago • 2 comments

This will allow to free stuff inside the userdata.

rofferom avatar Apr 03 '24 17:04 rofferom

Is there a specific need for this? Userdata is meant to be some user context that users free themselves, as it is created before registering the callback.

cyanreg avatar Apr 05 '24 09:04 cyanreg

Actually This will allow to free stuff inside the userdata. is a consequence of the patch. At first I wanted to be notified of the AVBufferRef * that is returned. It also allow to use the free callback to understand when the userdata isn't needed anymore.

rofferom avatar Apr 08 '24 17:04 rofferom