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:
Damiano Galassi committed 2014-12-12 09:13:32 +01:00
1 parent 9bf5d04050
commit cad51ea892
2 files changed
+5 -1

No files matched your search

-1
View File
@@ -18,7 +18,6 @@
- (instancetype)initWithLogFile:(NSURL *)fileURL; - (instancetype)initWithLogFile:(NSURL *)fileURL;
- (void)writeToLog:(NSString *)string;
- (void)clearLog; - (void)clearLog;
@end @end
+5
View File
@@ -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];