diff options
author | ritsuka <[email protected]> | 2014-12-27 15:57:47 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-27 15:57:47 +0000 |
commit | 01c4bbf221e0815e9eb049b89f846b6a99a63f0a (patch) | |
tree | 17c20bc532a3a1c19c6c5320e9a3da85005eb17d /macosx/HBOutputRedirect.m | |
parent | 77d37037be2dc26e571fe10f57e52f2327db9b9c (diff) |
MacGui: do not redirect nil to the log.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6662 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputRedirect.m')
-rw-r--r-- | macosx/HBOutputRedirect.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m index 7239fe3cd..aa34b27d5 100644 --- a/macosx/HBOutputRedirect.m +++ b/macosx/HBOutputRedirect.m @@ -185,8 +185,11 @@ int stderrwrite(void *inFD, const char *buffer, int size) - (void)forwardOutput:(NSData *)data { NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; - [listeners makeObjectsPerformSelector:forwardingSelector withObject:string]; - [string release]; + if (string) + { + [listeners makeObjectsPerformSelector:forwardingSelector withObject:string]; + [string release]; + } } @end |