]> Creatis software - gdcm.git/blobdiff - src/jdatasrc.cxx
* FIX : remove so many friend between classes
[gdcm.git] / src / jdatasrc.cxx
index 199431c31444c7542b07af05e58a6ca2d2c933f3..1573e74077364e80785033b84be3684686afb99a 100644 (file)
@@ -91,17 +91,17 @@ fill_input_buffer (j_decompress_ptr cinfo)
   my_src_ptr src = (my_src_ptr) cinfo->src;
 
   //std::cerr << "Before comp:" << src->bytes_read << " / " << src->frag->Length << std::endl;
-  if( src->bytes_read == src->frag->Length )
+  if( src->bytes_read == src->frag->GetLength() )
     {
     //std::cerr << "Sweet finished this fragment" << std::endl;
     return FALSE;
     }
 
   size_t input_buf_size = INPUT_BUF_SIZE;
-  if( (src->bytes_read + INPUT_BUF_SIZE) > src->frag->Length )
+  if( (src->bytes_read + INPUT_BUF_SIZE) > src->frag->GetLength() )
     {
     //std::cerr << "Woula error:" << src->bytes_read << " / " << src->frag->Length << std::endl;
-    input_buf_size = src->frag->Length - src->bytes_read;
+    input_buf_size = src->frag->GetLength() - src->bytes_read;
     //std::cerr << "Ok only reading: " << input_buf_size << " / " << INPUT_BUF_SIZE << std::endl;
      }