summaryrefslogtreecommitdiff
path: root/third_party/libopenjpeg20/function_list.c
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-10-13 15:28:55 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-10-13 00:49:26 -0700
commite865ed12c4a476a4c74bf1ae97d3a6fa8ca06f0a (patch)
tree9b2bad54f5afe41a627b0848347c3442f3c33635 /third_party/libopenjpeg20/function_list.c
parenta8a39e25af3c19bb91434fdf367cffa0e1536934 (diff)
downloadpdfium-e865ed12c4a476a4c74bf1ae97d3a6fa8ca06f0a.tar.xz
upgrade openjpeg to commit# cf352af
BUG=457480,497355 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1338973005 .
Diffstat (limited to 'third_party/libopenjpeg20/function_list.c')
-rw-r--r--third_party/libopenjpeg20/function_list.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/third_party/libopenjpeg20/function_list.c b/third_party/libopenjpeg20/function_list.c
index b9a8b4a7d2..a7ea11d59b 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