Use NSString’s fileSystemRepresentation where possible and fixed some clang static analyzer warning.
This commit is contained in:
1 parent
70095c73a7
commit
86b600b6a6
6 files changed
+34
-36
No files matched your search
@@ -719,10 +719,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
|
||||
@@ -822,7 +822,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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user