diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2015-10-13 15:28:55 +0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2015-10-13 15:28:55 +0800 |
commit | c212b684cb028a5d98e57f711c9eed931b853a44 (patch) | |
tree | f2c937d16b1156f57d8dbc86ec21db11a5b34174 /third_party/libopenjpeg20/function_list.c | |
parent | 3acb1ef909a22368507ed13817c4988c818e3aee (diff) | |
download | pdfium-c212b684cb028a5d98e57f711c9eed931b853a44.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.c | 9 |
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 |