From ab6d05a8d318abef61f706372b3a7122cc27fdfd Mon Sep 17 00:00:00 2001 From: Mark Rada Date: Sun, 9 Dec 2012 19:43:19 -0500 Subject: [PATCH] Explicitly specify custom paths are not directories --- ext/screen_recorder/screen_recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/screen_recorder/screen_recorder.c b/ext/screen_recorder/screen_recorder.c index bf1e7dd..f23d34a 100644 --- a/ext/screen_recorder/screen_recorder.c +++ b/ext/screen_recorder/screen_recorder.c @@ -71,7 +71,7 @@ rb_recorder_start(int argc, VALUE* argv, VALUE self) default: path = [NSString stringWithCString:StringValueCStr(argv[0]) encoding:NSUTF8StringEncoding]; - path_url = [NSURL fileURLWithPath:path]; + path_url = [NSURL fileURLWithPath:path isDirectory:NO]; result = [OBJC_UNWRAP(self) start:path_url]; [path release]; [path_url release];