mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 17:40:23 +00:00
vcomp/cmpto_j2k: if enque fails, return frm to pool
see also the commit 95773727 for similar change for the dec
This commit is contained in:
@@ -456,7 +456,15 @@ static void release_cstream(void * custom_data, size_t custom_data_size, const v
|
||||
udata->frame.~shared_ptr<video_frame>();
|
||||
}
|
||||
|
||||
#define HANDLE_ERROR_COMPRESS_PUSH if (img) cmpto_j2k_enc_img_destroy(img); return
|
||||
#define HANDLE_ERROR_COMPRESS_PUSH \
|
||||
if (udata != nullptr) { \
|
||||
udata->frame.~shared_ptr<video_frame>(); \
|
||||
} \
|
||||
if (img != nullptr) { \
|
||||
cmpto_j2k_enc_img_destroy(img); \
|
||||
} \
|
||||
return
|
||||
|
||||
static void j2k_compress_push(struct module *state, std::shared_ptr<video_frame> tx)
|
||||
{
|
||||
struct state_video_compress_j2k *s =
|
||||
|
||||
Reference in New Issue
Block a user