]> git.sesse.net Git - vlc/blobdiff - src/misc/image.c
Really fix PRNG return value descriptions
[vlc] / src / misc / image.c
index af2d425343f4c35753c37697acaa4d386aad91a7..7a6457262034a739d6b97920491416bc96e2f5a2 100644 (file)
@@ -46,6 +46,7 @@
 #include <vlc_fs.h>
 #include <vlc_sout.h>
 #include <libvlc.h>
+#include <vlc_modules.h>
 
 static picture_t *ImageRead( image_handler_t *, block_t *,
                              video_format_t *, video_format_t * );
@@ -377,7 +378,7 @@ static int ImageWriteUrl( image_handler_t *p_image, picture_t *p_pic,
         p_fmt_out->i_chroma = image_Ext2Fourcc( psz_url );
     }
 
-    file = utf8_fopen( psz_url, "wb" );
+    file = vlc_fopen( psz_url, "wb" );
     if( !file )
     {
         msg_Err( p_image->p_parent, "%s: %m", psz_url );