summaryrefslogtreecommitdiff
path: root/tests/unit/testempty1.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-04-23 07:46:11 +0000
committerAntonin Descampe <antonin@gmail.com>2014-04-23 07:46:11 +0000
commit7aece5e8e7d4214d140a45aca50a824ff8092924 (patch)
tree85599bd1108ecab5b12fad8dcea894f250b97145 /tests/unit/testempty1.c
parent8d93eae64acd18fac3c856e0a311905359233b96 (diff)
[trunk]Replaced deprecated opj_stream_set_user_data function from API
with its 'v3' version, and removed all other 'v3' suffixes from API.
Diffstat (limited to 'tests/unit/testempty1.c')
-rw-r--r--tests/unit/testempty1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/testempty1.c b/tests/unit/testempty1.c
index a2ae2d2d..fc961c22 100644
--- a/tests/unit/testempty1.c
+++ b/tests/unit/testempty1.c
@@ -110,12 +110,12 @@ int main(int argc, char *argv[])
opj_setup_encoder(l_codec, &parameters, image);
- l_stream = opj_stream_create_default_file_stream_v3("testempty1.j2k",OPJ_FALSE);
+ l_stream = opj_stream_create_default_file_stream("testempty1.j2k",OPJ_FALSE);
assert(l_stream);
bSuccess = opj_start_compress(l_codec,image,l_stream);
if( !bSuccess )
{
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(image);
return 0;
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
bSuccess = opj_end_compress(l_codec, l_stream);
assert( bSuccess );
- opj_stream_destroy_v3(l_stream);
+ opj_stream_destroy(l_stream);
opj_destroy_codec(l_codec);
opj_image_destroy(image);