summaryrefslogtreecommitdiff
path: root/indra/llimagej2coj
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
committerJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
commit98740db8fd5875033d08b6aef6d9bf5c3c49eeee (patch)
treedd0e83734e50ffd4d9f87eb2ed4091f867f2f1fd /indra/llimagej2coj
parentaa96d1fddff3d5bf68a5014229a0d20584937222 (diff)
svn merge -r 59826:59968 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
Diffstat (limited to 'indra/llimagej2coj')
-rw-r--r--indra/llimagej2coj/llimagej2coj.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp
index 1587b6a21c..94e79ba4f2 100644
--- a/indra/llimagej2coj/llimagej2coj.cpp
+++ b/indra/llimagej2coj/llimagej2coj.cpp
@@ -32,21 +32,21 @@ sample error callback expecting a FILE* client object
*/
void error_callback(const char* msg, void*)
{
- llwarns << "LLImageJ2CImpl: " << msg << llendl;
+ lldebugs << "LLImageJ2CImpl error_callback: " << msg << llendl;
}
/**
sample warning callback expecting a FILE* client object
*/
void warning_callback(const char* msg, void*)
{
- llinfos << "LLImageJ2CImpl: " << msg << llendl;
+ lldebugs << "LLImageJ2CImpl warning_callback: " << msg << llendl;
}
/**
sample debug callback expecting no client object
*/
void info_callback(const char* msg, void*)
{
- lldebugs << "LLImageJ2CImpl: " << msg << llendl;
+ lldebugs << "LLImageJ2CImpl info_callback: " << msg << llendl;
}
@@ -271,9 +271,10 @@ BOOL LLImageJ2COJ::encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, con
/* encode the image */
bool bSuccess = opj_encode(cinfo, cio, image, parameters.index);
- if (!bSuccess) {
+ if (!bSuccess)
+ {
opj_cio_close(cio);
- fprintf(stderr, "failed to encode image\n");
+ llinfos << "Failed to encode image." << llendl;
return FALSE;
}
codestream_length = cio_tell(cio);