Index: third_party/libopenjpeg20/function_list.c |
diff --git a/third_party/libopenjpeg20/function_list.c b/third_party/libopenjpeg20/function_list.c |
index b9a8b4a7d2a8d508635c6663a490094528176fc5..a7ea11d59b28c7cbd1df0b00694d8617b0a37f45 100644 |
--- a/third_party/libopenjpeg20/function_list.c |
+++ b/third_party/libopenjpeg20/function_list.c |
@@ -69,8 +69,11 @@ void opj_procedure_list_destroy(opj_procedure_list_t * p_list) |
opj_free(p_list); |
} |
-OPJ_BOOL opj_procedure_list_add_procedure (opj_procedure_list_t * p_validation_list, opj_procedure p_procedure) |
+OPJ_BOOL opj_procedure_list_add_procedure (opj_procedure_list_t * p_validation_list, opj_procedure p_procedure, opj_event_mgr_t* p_manager ) |
{ |
+ |
+ assert(p_manager != NULL); |
+ |
if (p_validation_list->m_nb_max_procedures == p_validation_list->m_nb_procedures) |
{ |
opj_procedure * new_procedures; |
@@ -84,9 +87,7 @@ OPJ_BOOL opj_procedure_list_add_procedure (opj_procedure_list_t * p_validation_l |
opj_free(p_validation_list->m_procedures); |
p_validation_list->m_nb_max_procedures = 0; |
p_validation_list->m_nb_procedures = 0; |
- /* opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add a new validation procedure\n"); */ |
- fprintf(stderr, "Not enough memory to add a new validation procedure\n"); |
- |
+ opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add a new validation procedure\n"); |
return OPJ_FALSE; |
} |
else |