[vlc-commits] macosx/output: replaced deprecated API call and fixed long standing warning

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


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

macosx/output: replaced deprecated API call and fixed long standing warning

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

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

diff --git a/modules/gui/macosx/output.m b/modules/gui/macosx/output.m
index 6c6db5f..7e7bc3e 100644
--- a/modules/gui/macosx/output.m
+++ b/modules/gui/macosx/output.m
@@ -517,9 +517,9 @@
 
     [o_save_panel setTitle: _NS("Save File")];
     [o_save_panel setPrompt: _NS("Save")];
+    [o_save_panel setNameFieldStringValue: o_name];
 
-    if( [o_save_panel runModalForDirectory: nil
-            file: o_name] == NSOKButton )
+    if( [o_save_panel runModal] == NSFileHandlingPanelOKButton )
     {
         NSString *o_filename = [[o_save_panel URL] path];
         [o_file_field setStringValue: o_filename];
@@ -604,9 +604,8 @@
         [o_transcode_string appendString:@"}:"];
     }
     else
-    {
-        o_transcode_string = [NSString stringWithString:@""];
-    }
+        [o_transcode_string setString: @""];
+
     [self setTranscode: o_transcode_string];
     [self outputInfoChanged:nil];
 }



More information about the vlc-commits mailing list