[vlc-commits] macosx/output: fixed rare exception

Felix Paul Kühne git at videolan.org
Thu Aug 23 12:31:43 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Aug 23 12:23:18 2012 +0200| [ffbdd5c7d91ba10a1bb32ab5b4d833f5282e33fa] | committer: Felix Paul Kühne

macosx/output: fixed rare exception

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ffbdd5c7d91ba10a1bb32ab5b4d833f5282e33fa
---

 modules/gui/macosx/output.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/output.m b/modules/gui/macosx/output.m
index 7e7bc3e..f014a12 100644
--- a/modules/gui/macosx/output.m
+++ b/modules/gui/macosx/output.m
@@ -571,12 +571,12 @@
 
 - (void)transcodeInfoChanged:(NSNotification *)o_notification
 {
-    NSMutableString *o_transcode_string;
+    NSMutableString *o_transcode_string = [NSMutableString stringWithCapacity:200];
 
     if( [o_transcode_video_chkbox state] == NSOnState ||
         [o_transcode_audio_chkbox state] == NSOnState )
     {
-        o_transcode_string = [NSMutableString stringWithString:@"transcode{"];
+        [o_transcode_string appendString:@"transcode{"];
         if ( [o_transcode_video_chkbox state] == NSOnState )
         {
             [o_transcode_string appendFormat: @"vcodec=\"%@\",vb=\"%@\"" \



More information about the vlc-commits mailing list