diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-16 17:39:23 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-16 17:39:23 +0000 |
| commit | 4bf4a7668eaeaa4b02051afe06b8ec3e0d805de3 (patch) | |
| tree | 1e7b594fe97228ed16eb6268a8f9bf8c3175a06c /tests/unit/testempty2.c | |
| parent | c03ca9c73c15b893d5e952207224e3e339b5bbd6 (diff) | |
[trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destroy_v3 (WIP)
Diffstat (limited to 'tests/unit/testempty2.c')
| -rw-r--r-- | tests/unit/testempty2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/testempty2.c b/tests/unit/testempty2.c index 47ef4cc2..3b0952b2 100644 --- a/tests/unit/testempty2.c +++ b/tests/unit/testempty2.c @@ -101,9 +101,9 @@ int main(int argc, char *argv[]) } } - /* catch events using our callbacks and give a local context */
- opj_set_info_handler(l_codec, info_callback,00);
- opj_set_warning_handler(l_codec, warning_callback,00);
+ /* catch events using our callbacks and give a local context */ + opj_set_info_handler(l_codec, info_callback,00); + opj_set_warning_handler(l_codec, warning_callback,00); opj_set_error_handler(l_codec, error_callback,00); l_codec = opj_create_compress(OPJ_CODEC_J2K); @@ -127,7 +127,7 @@ int main(int argc, char *argv[]) bSuccess = opj_end_compress(l_codec, l_stream); assert( bSuccess ); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(f); opj_destroy_codec(l_codec); @@ -161,7 +161,7 @@ int main(int argc, char *argv[]) bSuccess = opj_end_decompress(l_codec, l_stream); assert( bSuccess ); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(fsrc); opj_destroy_codec(d_codec); |
