summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-06-11 06:02:40 +0000
committerritsuka <[email protected]>2015-06-11 06:02:40 +0000
commit744ac129aa4d37744c3d3b4ade4aa2eea9593a17 (patch)
tree04e527987f28838eea4766268466c9e0408e67cf
parent4582ca7380e5ddc0fa6ef81af20b9a0bd576af96 (diff)
[0.10.x] MacGui: do not redirect null strings to the activity log.0.10.2
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7289 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/HBOutputRedirect.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m
index 7239fe3cd..a4415792a 100644
--- a/macosx/HBOutputRedirect.m
+++ b/macosx/HBOutputRedirect.m
@@ -185,7 +185,10 @@ 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];
+ if (string)
+ {
+ [listeners makeObjectsPerformSelector:forwardingSelector withObject:string];
+ }
[string release];
}