Use NSString’s fileSystemRepresentation where possible and fixed some clang static analyzer warning.

This commit is contained in:
Damiano Galassi committed 2014-02-15 08:29:00 +01:00
1 parent 70095c73a7
commit 86b600b6a6
6 files changed
+34 -36

No files matched your search

+3 -3
View File
@@ -266,10 +266,10 @@ static bool GetFirstHeader(FILE* inFile)
newTrack.sourceURL = _fileURL;
if (!inFile)
inFile = fopen([[_fileURL path] UTF8String], "rb");
inFile = fopen([[_fileURL path] fileSystemRepresentation], "rb");
struct stat st;
stat([[_fileURL path] UTF8String], &st);
stat([[_fileURL path] fileSystemRepresentation], &st);
size = st.st_size * 8;
// collect all the necessary meta information
@@ -340,7 +340,7 @@ static bool GetFirstHeader(FILE* inFile)
{
@autoreleasepool {
if (!inFile)
inFile = fopen([[_fileURL path] UTF8String], "rb");
inFile = fopen([[_fileURL path] fileSystemRepresentation], "rb");
MP4TrackId trackId = [[_inputTracks lastObject] sourceId];