Replace open() with BLI_open
authorCampbell Barton <ideasman42@gmail.com>
Sat, 7 Jun 2014 01:30:08 +0000 (11:30 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 7 Jun 2014 01:30:08 +0000 (11:30 +1000)
source/blender/editors/space_clip/clip_ops.c
source/blender/windowmanager/intern/wm_playanim.c

index 7ccee73626c489ae8aef4f4a57f141f78abbf3f5..c0434def3d5858446d6b0a9c43ff5c8cb6e160bb 100644 (file)
@@ -1085,7 +1085,7 @@ static unsigned char *proxy_thread_next_frame(ProxyQueue *queue, MovieClip *clip
 
                BKE_movieclip_filename_for_frame(clip, &user, name);
 
-               file = open(name, O_BINARY | O_RDONLY, 0);
+               file = BLI_open(name, O_BINARY | O_RDONLY, 0);
                if (file < 0) {
                        BLI_spin_unlock(&queue->spin);
                        return NULL;
index b7452206b27039b05088cf2dd09156aaf7839efa..024135e73e9bdc7216a23f71efd0807d20401b16 100644 (file)
@@ -363,7 +363,7 @@ static void build_pict_list_ex(PlayState *ps, const char *first, int totframes,
                        size_t size;
                        int file;
 
-                       file = open(filepath, O_BINARY | O_RDONLY, 0);
+                       file = BLI_open(filepath, O_BINARY | O_RDONLY, 0);
                        if (file < 0) {
                                /* print errno? */
                                return;