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
diff --git a/common/rfb/IrixDMIC_RawToJpeg.cxx b/common/rfb/IrixDMIC_RawToJpeg.cxx
index afa0d18..4cdb1ba 100644
--- a/common/rfb/IrixDMIC_RawToJpeg.cxx
+++ b/common/rfb/IrixDMIC_RawToJpeg.cxx
@@ -203,6 +203,15 @@
     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;