SDL: add input support, use SDL mainloop in a thread
[enigma2.git] / lib / gdi / picload.cpp
index 7fabef5e9f3dc744f1464eec15e28f5dcb65df6d..0ce10c09806e70099b27b98f2a1ea35a26e92577 100644 (file)
@@ -1,4 +1,5 @@
-#include <png.h>       // must be included before Python.h because of setjmp
+#define PNG_SKIP_SETJMP_CHECK
+#include <png.h>
 #include <fcntl.h>
 
 #include <lib/gdi/picload.h>
@@ -671,7 +672,6 @@ void ePicLoad::decodeThumb()
                                m_filepara->id = F_JPEG;
                                eDebug("[Picload] Cache File found");
                        }
-                       fclose(f);
                }
        }