aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2007-12-07 10:28:11 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2007-12-07 10:28:11 +0000
commitabcbd007cab8f36ea93ac45ade7d02c98f35781e (patch)
treeeedc4b47d5ea43ae2a0ed0c2bda807b8b89a578c /common
parentcf1d7f11b444452c3692d2ca0cb320d54460c7b7 (diff)
downloadtigervnc-abcbd007cab8f36ea93ac45ade7d02c98f35781e.tar.gz
tigervnc-abcbd007cab8f36ea93ac45ade7d02c98f35781e.zip
Changing JPEG compression levels did not have immediate effect.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2373 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r--common/rfb/IrixDMIC_RawToJpeg.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/rfb/IrixDMIC_RawToJpeg.cxx b/common/rfb/IrixDMIC_RawToJpeg.cxx
index afa0d18b..4cdb1ba0 100644
--- a/common/rfb/IrixDMIC_RawToJpeg.cxx
+++ b/common/rfb/IrixDMIC_RawToJpeg.cxx
@@ -203,6 +203,15 @@ IrixDMIC_RawToJpeg::setImageQuality(int quality)
reportError("dmParamsSetFloat");
return false;
}
+
+ // For some reason, dmICSetConvParams() does not have effect without
+ // calling dmICSetDstParams() as well. So we call it here.
+ if (m_dstParams && dmParamsGetNumElems(m_dstParams) &&
+ dmICSetDstParams(m_ic, m_dstParams) != DM_SUCCESS) {
+ reportError("dmICSetDstParams");
+ return false;
+ }
+
if (dmICSetConvParams(m_ic, m_convParams) != DM_SUCCESS) {
reportError("dmICSetConvParams");
return false;