Call fileSystemRepresentation directly on NSURL.

This commit is contained in:
Damiano Galassi committed 2016-09-09 17:14:45 +02:00
1 parent 598bb185c9
commit e8e0db5da1
7 files changed
+16 -16

No files matched your search

+3 -3
View File
@@ -281,11 +281,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
@@ -356,7 +356,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;