]> git.sesse.net Git - vlc/commitdiff
* the remaining compilation fixes plus a bit of clean up here and there. vout.m needs...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 26 Nov 2006 19:21:54 +0000 (19:21 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 26 Nov 2006 19:21:54 +0000 (19:21 +0000)
modules/gui/macosx/bookmarks.m
modules/gui/macosx/extended.m
modules/gui/macosx/fspanel.m
modules/gui/macosx/open.m
modules/gui/macosx/playlist.m
modules/gui/macosx/sfilters.h
modules/gui/macosx/sfilters.m
modules/gui/macosx/vout.m
modules/gui/macosx/wizard.h
modules/gui/macosx/wizard.m

index 86d13adfa007ed8689d2bb4f1760d764121a3527..43920dbfa2f1a89dfd10bb0bc645cdeee3bcda4d 100644 (file)
@@ -37,7 +37,7 @@
 #import "bookmarks.h"
 #import "intf.h"
 #import "wizard.h"
-#import <vlc/intf.h>
+#import <vlc_interface.h>
 
 /*****************************************************************************
  * VLCExtended implementation
@@ -171,10 +171,6 @@ static VLCBookmarks *_o_sharedInstance = nil;
         VLC_OBJECT_INPUT, FIND_ANYWHERE );
     seekpoint_t **pp_bookmarks;
     int i_bookmarks;
-    char * toBeReturned;
-    toBeReturned = "";
-    int i_toBeReturned;
-    i_toBeReturned = 0;
     int row;
     row = [o_tbl_dataTable selectedRow];
     
@@ -346,7 +342,7 @@ static VLCBookmarks *_o_sharedInstance = nil;
             to: [[NSNumber numberWithInt:
             (pp_bookmarks[i_second]->i_time_offset/1000000)] stringValue]
             ofItem: [NSString stringWithUTF8String:
-            p_input->input.p_item->psz_uri]];
+            input_GetItem(p_input)->psz_uri]];
     vlc_object_release( p_input );
     msg_Dbg(p_intf, "released input");
 }
@@ -436,10 +432,8 @@ static VLCBookmarks *_o_sharedInstance = nil;
         VLC_OBJECT_INPUT, FIND_ANYWHERE );
     seekpoint_t **pp_bookmarks;
     int i_bookmarks;
-    char * toBeReturned;
-    toBeReturned = "";
-    int i_toBeReturned;
-    i_toBeReturned = 0;
+    char *toBeReturned;
+    int i_toBeReturned = 0;
     
     if( !p_input )
     {
index a1d3f562aa7169bae0d4a78051dd9cdfc89920d0..4925ab2266729c368c6277d31ad8967f68abe575 100644 (file)
 #import "extended.h"
 #import "intf.h"
 #import "vout.h"
-#import <vlc/aout.h>
-#import <aout_internal.h>
-#import <vlc/vout.h>
-#import <vlc/intf.h>
+#import <vlc_aout.h>
+#import <vlc_vout.h>
+#import <vlc_interface.h>
 
 /*****************************************************************************
  * VLCExtended implementation
index 9ee35fbd5f350b5fb7d73c06e663900829acfbeb..584325e0528e86b6b6e6d26d227102240c63e4ed 100644 (file)
     id view = [super initWithFrame:frameRect];\r
     fillColor = [[NSColor clearColor] retain];\r
     NSRect s_rc = [self frame];\r
-    NSImage * image;\r
     addButton( o_prev, @"fs_skip_previous" , @"fs_skip_previous_highlight", 174, 15, prev );\r
     addButton( o_slow, @"fs_rewind"        , @"fs_rewind_highlight"       , 211, 14, slower );\r
     addButton( o_play, @"fs_play"          , @"fs_play_highlight"         , 267, 10, play );\r
index 05c6b5fd85e46444c451f054922ddbb0410211e7..495c1bc1b86e64ae894ca0e5d39d7cab1249ee45 100644 (file)
@@ -43,7 +43,7 @@
 #include "playlist.h"
 #include "open.h"
 #include "output.h"
-#import <vlc/intf.h>
+#import <vlc_interface.h>
 
 /*****************************************************************************
  * GetEjectableMediaOfClass 
index 37524c05c78a0a12f5b41ee5f5a262780163aa78..ccc92c8eb1c1f9e3be85fd087b102edbb5320aaf 100644 (file)
@@ -242,7 +242,6 @@ NSLog( @"expandable" );
 - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)o_tc byItem:(id)item
 {
     id o_value = nil;
-    intf_thread_t *p_intf = VLCIntf;
     playlist_item_t *p_item;
     
     if( item == nil || ![item isKindOfClass: [NSValue class]] ) return( @"error" );
@@ -380,7 +379,7 @@ NSLog( @"expandable" );
             while( p_parser->pp_shortcuts[++i] != NULL ); i--;
 
             /* Check whether to enable these menuitems */
-            objectname = i>=0 ? p_parser->pp_shortcuts[i] : p_parser->psz_object_name;
+            objectname = i>=0 ? (char *)p_parser->pp_shortcuts[i] : (char *)p_parser->psz_object_name;
             b_enabled = playlist_IsServicesDiscoveryLoaded( p_playlist, objectname );
             
             /* Create the menu entries used in the playlist menu */
index b003c62cd535f23c0d1a704b673b883d671871d2..e6a91ed42f7b04dc1c4a01c77451be94785cb9f5 100644 (file)
@@ -22,7 +22,7 @@
  *****************************************************************************/
 
 #import <Cocoa/Cocoa.h>
-#import <vlc_interface.h>
+#import <vlc/vlc.h>
 
 @interface VLCsFilters : NSObject
 {
index 4265cf10e6ab90f7e17b09a837f0b45944ef6392..19ec263cc28a52a3791e3f96e45633bf88851ec1 100644 (file)
@@ -31,7 +31,7 @@
 
 #import "sfilters.h"
 #import "intf.h"
-#import <vlc/vout.h>
+#import <vlc_vout.h>
 
 /* TODO:
     - check for memory leaks
@@ -298,13 +298,24 @@ static VLCsFilters *_o_sharedInstance = nil;
     psz_subfilters = config_GetPsz( p_intf, "sub-filter" );
     if( psz_subfilters )
     {
-        [o_marq_enabled_ckb setState: (bool)strstr( psz_subfilters, "marq")];
-        [o_logo_enabled_ckb setState: (bool)strstr( psz_subfilters, "logo")];
-        [o_time_enabled_ckb setState: (bool)strstr( psz_subfilters, "time")];
+        if( strstr( psz_subfilters, "marq") )
+            [o_marq_enabled_ckb setState: YES];
+        else
+            [o_marq_enabled_ckb setState: NO];
+        
+        if( strstr( psz_subfilters, "logo") )
+            [o_logo_enabled_ckb setState: YES];
+        else
+            [o_logo_enabled_ckb setState: NO];
+        
+        if( strstr( psz_subfilters, "time") )
+            [o_time_enabled_ckb setState: YES];
+        else
+            [o_time_enabled_ckb setState: NO];
     }
-        [self enableMarq];
-        [self enableLogo];
-        [self enableTime];
+    [self enableMarq];
+    [self enableLogo];
+    [self enableTime];
 }
 
 - (IBAction)logo_selectFile:(id)sender
@@ -344,7 +355,7 @@ static VLCsFilters *_o_sharedInstance = nil;
     {
         if( [[o_marq_marq_fld stringValue] length] == 0 )
         {
-            val.psz_string = "";
+            val.psz_string = (char *)"";
         }
         else
         {
@@ -414,7 +425,7 @@ static VLCsFilters *_o_sharedInstance = nil;
     {
         if( [[o_time_stamp_fld stringValue] length] == 0 )
         {
-            val.psz_string = "";
+            val.psz_string = (char *)"";
         }
         else
         {
@@ -508,11 +519,11 @@ static VLCsFilters *_o_sharedInstance = nil;
     {
         if( [o_marq_enabled_ckb state] == NSOnState )
         {
-            [self changeFiltersString:"marq" onOrOff:VLC_TRUE];
+            [self changeFiltersString:(char *)"marq" onOrOff:VLC_TRUE];
         }
         else
         {
-            [self changeFiltersString:"marq" onOrOff:VLC_FALSE];
+            [self changeFiltersString:(char *)"marq" onOrOff:VLC_FALSE];
         }
         [self enableMarq];
     }
@@ -520,11 +531,11 @@ static VLCsFilters *_o_sharedInstance = nil;
     {
         if( [o_logo_enabled_ckb state] == NSOnState )
         {
-            [self changeFiltersString:"logo" onOrOff:VLC_TRUE];
+            [self changeFiltersString:(char *)"logo" onOrOff:VLC_TRUE];
         }
         else
         {
-            [self changeFiltersString:"logo" onOrOff:VLC_FALSE];
+            [self changeFiltersString:(char *)"logo" onOrOff:VLC_FALSE];
         }
         [self enableLogo];
     }
@@ -532,11 +543,11 @@ static VLCsFilters *_o_sharedInstance = nil;
     {
         if( [o_time_enabled_ckb state] == NSOnState )
         {
-            [self changeFiltersString:"time" onOrOff:VLC_TRUE];
+            [self changeFiltersString:(char *)"time" onOrOff:VLC_TRUE];
         }
         else
         {
-            [self changeFiltersString:"time" onOrOff:VLC_FALSE];
+            [self changeFiltersString:(char *)"time" onOrOff:VLC_FALSE];
         }
         [self enableTime];
     }    
index 12133e61c7520a6db1040e06ea5704bd43e20fb6..87cbb5f83a5d1057816ceb3b27045af0f3210c1f 100644 (file)
@@ -273,17 +273,19 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         return;
     }
 
-    if( p_input->input.p_item->psz_name != NULL )
+    if( input_GetItem(p_input)->psz_name != NULL )
         o_title = [NSMutableString stringWithUTF8String:
-            p_input->input.p_item->psz_name];
-    if( p_input->input.p_item->psz_uri != NULL )
+            input_GetItem(p_input)->psz_name];
+    if( input_GetItem(p_input)->psz_uri != NULL )
         o_mrl = [NSMutableString stringWithUTF8String:
-            p_input->input.p_item->psz_uri];
+            input_GetItem(p_input)->psz_uri];
     if( o_title == nil )
         o_title = o_mrl;
 
     if( o_mrl != nil )
     {
+        /* FIXME once psz_access is exported, since that syntax is no longer valid */
+#if 0
         if( p_input->input.p_access && !strcmp( p_input->input.p_access->p_module->psz_shortname, "File" ) )
         {
             NSRange prefix_range = [o_mrl rangeOfString: @"file:"];
@@ -291,6 +293,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
                 [o_mrl deleteCharactersInRange: prefix_range];
             [o_window setRepresentedFilename: o_mrl];
         }
+#endif
         [o_window setTitle: o_title];
     }
     else
index 52fbdb3372d63e63bf7eab0b987a64a4ec404173..99359ea6347d78a4ad62fceb3bc5b4f97bf65de6 100644 (file)
     NSArray * o_strmgMthds;
     NSString * o_opts;
     
-    BOOL keepSettingsOrNot;
+    BOOL b_keepSettingsOrNot;
 }
 - (IBAction)cancelRun:(id)sender;
 - (IBAction)nextTab:(id)sender;
index e01f615f12de977d4266161feff8aa1090f6a572..c2f3845f758bcad8fc0000244789ef86ead607e6 100644 (file)
@@ -33,9 +33,8 @@
  *****************************************************************************/
 #import "wizard.h"
 #import "intf.h"
-#import "network.h"
 #import "playlist.h"
-#import <vlc/intf.h>
+#import <vlc_interface.h>
 
 /*****************************************************************************
  * VLCWizard implementation
@@ -306,7 +305,7 @@ static VLCWizard *_o_sharedInstance = nil;
 - (void)resetWizard
 {
     /* get the current state of our setting to keep the selections or not */
-    keepSettingsOrNot = (BOOL *)config_GetInt( VLCIntf, "macosx-wizard-keep" );
+    b_keepSettingsOrNot = (BOOL)config_GetInt( VLCIntf, "macosx-wizard-keep" );
 
     /* go to the front page and clean up a bit */
     [o_userSelections removeAllObjects];
@@ -314,7 +313,7 @@ static VLCWizard *_o_sharedInstance = nil;
     [o_tab_pageHolder selectFirstTabViewItem:self];
 
     
-    if( keepSettingsOrNot )
+    if( b_keepSettingsOrNot )
         return;
     
     /* reset the wizard-window to its default values if wanted */
@@ -1198,10 +1197,10 @@ static VLCWizard *_o_sharedInstance = nil;
                     /* check whether the extension is hidden or not. 
                      * if not, remove it
                      * we need the casting to make GCC4 happy */
-                    if( (int)[[[NSFileManager defaultManager] fileAttributesAtPath: \
+                    if( [[[NSFileManager defaultManager] fileAttributesAtPath: \
                         [[o_userSelections objectForKey:@"pathToStrm"] \
                         objectAtIndex: x] traverseLink: NO] objectForKey: \
-                        NSFileExtensionHidden] == YES )
+                        NSFileExtensionHidden] )
                         fileNameToUse = [NSString stringWithString:
                             [[NSFileManager defaultManager] displayNameAtPath:
                             [[o_userSelections objectForKey:@"pathToStrm"]
@@ -1321,7 +1320,7 @@ static VLCWizard *_o_sharedInstance = nil;
             {
                 /* play the first item and add the others afterwards */
                 playlist_item_t *p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
-                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, NULL,
+                playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, VLC_TRUE, NULL,
                           p_item );
             }
 
@@ -1348,7 +1347,7 @@ static VLCWizard *_o_sharedInstance = nil;
             objectAtIndex:0]];
         x += 1;
     }
-    if( keepSettingsOrNot && savePreviousSel >= 0 )
+    if( b_keepSettingsOrNot && savePreviousSel >= 0 )
         [o_t4_pop_videoCodec selectItemAtIndex: savePreviousSel];
 
     savePreviousSel = [o_t4_pop_audioCodec indexOfSelectedItem];
@@ -1360,7 +1359,7 @@ static VLCWizard *_o_sharedInstance = nil;
             objectAtIndex:0]];
         x += 1;
     }
-    if( keepSettingsOrNot && savePreviousSel >= 0 )
+    if( b_keepSettingsOrNot && savePreviousSel >= 0 )
         [o_t4_pop_audioCodec selectItemAtIndex: savePreviousSel];
 }