[Bf-blender-cvs] [918f6a4] master: Replace open() with BLI_open

Campbell Barton noreply at git.blender.org
Sat Jun 7 03:31:37 CEST 2014


Commit: 918f6a49a7c0fcef29800460202cad40eeec99b5
Author: Campbell Barton
Date:   Sat Jun 7 11:30:08 2014 +1000
https://developer.blender.org/rB918f6a49a7c0fcef29800460202cad40eeec99b5

Replace open() with BLI_open

===================================================================

M	source/blender/editors/space_clip/clip_ops.c
M	source/blender/windowmanager/intern/wm_playanim.c

===================================================================

diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c
index 7ccee73..c0434de 100644
--- a/source/blender/editors/space_clip/clip_ops.c
+++ b/source/blender/editors/space_clip/clip_ops.c
@@ -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;
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index b745220..024135e 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -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;




More information about the Bf-blender-cvs mailing list