From 4bf4a7668eaeaa4b02051afe06b8ec3e0d805de3 Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Sat, 16 Feb 2013 17:39:23 +0000 Subject: [trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destroy_v3 (WIP) --- tests/test_tile_encoder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_tile_encoder.c') diff --git a/tests/test_tile_encoder.c b/tests/test_tile_encoder.c index 22ecb348..54710369 100644 --- a/tests/test_tile_encoder.c +++ b/tests/test_tile_encoder.c @@ -290,7 +290,7 @@ int main (int argc, char *argv[]) if (! opj_start_compress(l_codec,l_image,l_stream)) { fprintf(stderr, "ERROR -> test_tile_encoder: failed to start compress!\n"); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(l_file); opj_destroy_codec(l_codec); opj_image_destroy(l_image); @@ -300,7 +300,7 @@ int main (int argc, char *argv[]) for (i=0;i test_tile_encoder: failed to write the tile %d!\n",i); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(l_file); opj_destroy_codec(l_codec); opj_image_destroy(l_image); @@ -310,14 +310,14 @@ int main (int argc, char *argv[]) if (! opj_end_compress(l_codec,l_stream)) { fprintf(stderr, "ERROR -> test_tile_encoder: failed to end compress!\n"); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(l_file); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return 1; } - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); fclose(l_file); opj_destroy_codec(l_codec); opj_image_destroy(l_image); -- cgit v1.2.3