[vlc-commits] macosx: compilation fix

Felix Paul Kühne git at videolan.org
Tue Oct 9 19:06:49 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Oct  9 19:06:46 2012 +0200| [920ca4e74c95899703c13125f31e3e8c180af54f] | committer: Felix Paul Kühne

macosx: compilation fix

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

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

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 0c3cc28..b71f5f3 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -323,10 +323,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
     if( p_item )
     {
-        for (int i = 0; i < p_item->list_count; i++) {
-            [o_file_sub_encoding_pop addItemWithTitle: _NS(p_item->list_text[i])];
-            [[o_file_sub_encoding_pop lastItem] setRepresentedObject:[NSString stringWithFormat:@"%s", p_item->list.psz[i]]];
-            if (p_item->value.psz && !strcmp(p_item->value.psz, p_item->list.psz[i]))
+        for (int i = 0; i < p_item->i_list; i++) {
+            [o_file_sub_encoding_pop addItemWithTitle: _NS(p_item->ppsz_list_text[i])];
+            [[o_file_sub_encoding_pop lastItem] setRepresentedObject:[NSString stringWithFormat:@"%s", p_item->ppsz_list[i]]];
+            if (p_item->value.psz && !strcmp(p_item->value.psz, p_item->ppsz_list[i]))
                 [o_file_sub_encoding_pop selectItem: [o_file_sub_encoding_pop lastItem]];
         }
 



More information about the vlc-commits mailing list