Fixed a hang that happened when trying to mux an unsupported track, and added better error reporting. Disabled some log messages.
This commit is contained in:
1 parent
9bf5d04050
commit
cad51ea892
2 files changed
+5
-1
No files matched your search
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
- (instancetype)initWithLogFile:(NSURL *)fileURL;
|
- (instancetype)initWithLogFile:(NSURL *)fileURL;
|
||||||
|
|
||||||
- (void)writeToLog:(NSString *)string;
|
|
||||||
- (void)clearLog;
|
- (void)clearLog;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
@@ -54,6 +54,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)writeErrorToLog:(NSError *)error {
|
||||||
|
[self writeToLog:[NSString stringWithFormat:@"%@\n", error.localizedDescription]];
|
||||||
|
[self writeToLog:[NSString stringWithFormat:@"%@\n", error.localizedRecoverySuggestion]];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)clearLog {
|
- (void)clearLog {
|
||||||
if (self.fileURL) {
|
if (self.fileURL) {
|
||||||
[[NSFileManager defaultManager] removeItemAtURL:self.fileURL error:nil];
|
[[NSFileManager defaultManager] removeItemAtURL:self.fileURL error:nil];
|
||||||
|
|||||||
Reference in new issue
Block a user