Call fileSystemRepresentation directly on NSURL.
This commit is contained in:
1 parent
598bb185c9
commit
e8e0db5da1
7 files changed
+16
-16
No files matched your search
@@ -732,11 +732,11 @@ static bool GetFirstHeader(FILE* inFile)
|
||||
newTrack.sourceURL = self.fileURL;
|
||||
|
||||
if (!inFile) {
|
||||
inFile = fopen(self.fileURL.path.fileSystemRepresentation, "rb");
|
||||
inFile = fopen(self.fileURL.fileSystemRepresentation, "rb");
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
stat(self.fileURL.path.fileSystemRepresentation, &st);
|
||||
stat(self.fileURL.fileSystemRepresentation, &st);
|
||||
size = st.st_size * 8;
|
||||
|
||||
// collect all the necessary meta information
|
||||
@@ -842,7 +842,7 @@ static bool GetFirstHeader(FILE* inFile)
|
||||
{
|
||||
@autoreleasepool {
|
||||
if (!inFile) {
|
||||
inFile = fopen(self.fileURL.path.fileSystemRepresentation, "rb");
|
||||
inFile = fopen(self.fileURL.fileSystemRepresentation, "rb");
|
||||
}
|
||||
|
||||
MP4TrackId trackId = self.inputTracks.lastObject.sourceId;
|
||||
|
||||
Reference in new issue
Block a user