--- pdftoipe-20110916-src/xmloutputdev.cpp.orig	2011-10-24 14:38:53.000000000 +0200
+++ pdftoipe-20110916-src/xmloutputdev.cpp	2011-10-24 14:39:31.000000000 +0200
@@ -336,7 +336,7 @@
     // dump JPEG stream
     std::vector<char> buffer;
     // initialize stream
-    str = ((DCTStream *)str)->getRawStream();
+    str = str->getNextStream();
     str->reset();
     // copy the stream
     while ((c = str->getChar()) != EOF)
