]> git.sesse.net Git - vlc/commitdiff
* modules/gui/*: compilation fixes for the new input_item_t change.
authorGildas Bazin <gbazin@videolan.org>
Wed, 31 Mar 2004 22:55:48 +0000 (22:55 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 31 Mar 2004 22:55:48 +0000 (22:55 +0000)
modules/gui/beos/VlcWrapper.cpp
modules/gui/macosx/playlist.m
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/vout.m
modules/gui/ncurses/ncurses.c
modules/gui/pda/pda_callbacks.c

index f4304e4bcd345d67c9eeee0ef78ab07b3bb0314a..e1c9882bf4ffc2a2e3a86f3f46aca151a87678e0 100644 (file)
@@ -2,7 +2,7 @@
  * VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.cpp,v 1.42 2004/01/17 12:28:57 gbazin Exp $
+ * $Id$
  *
  * Authors: Florian G. Pflug <fgp@phlo.org>
  *          Jon Lech Johansen <jon-vl@nanocrew.net>
@@ -402,7 +402,7 @@ int VlcWrapper::PlaylistSize()
 
 char * VlcWrapper::PlaylistItemName( int i )
 {
-   return p_playlist->pp_items[i]->psz_name;
+   return p_playlist->pp_items[i]->input.psz_name;
 }
 
 int VlcWrapper::PlaylistCurrent()
@@ -707,8 +707,8 @@ VlcWrapper::PlaylistCloneItem( void* castToItem ) const
                {
                        // make a copy of the item at index
                         *copy = *item;
-                       copy->psz_name = strdup( item->psz_name );
-                       copy->psz_uri  = strdup( item->psz_uri );
+                       copy->input.psz_name = strdup( item->input.psz_name );
+                       copy->input.psz_uri  = strdup( item->input.psz_uri );
                }
        }
        return (void*)copy;
@@ -786,7 +786,7 @@ bool VlcWrapper::IsUsingMenus()
         return false;
     }
     
-    char * psz_name = p_playlist->pp_items[p_playlist->i_index]->psz_name;
+    char * psz_name = p_playlist->pp_items[p_playlist->i_index]->input.psz_name;
     if( !strncmp( psz_name, "dvdplay:", 8 ) )
     {
         vlc_mutex_unlock( &p_playlist->object_lock );
index 711f7e14c8b83e6ec4fe15fb364f980dd61cf07b..31dfb8aa2f673bf72d2c291df25ad3ccce99e39f 100644 (file)
@@ -404,7 +404,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
 
         vlc_mutex_lock( &p_playlist->object_lock );
         o_current_name = [NSString stringWithUTF8String: 
-            p_playlist->pp_items[i_current]->psz_name];
+            p_playlist->pp_items[i_current]->input.psz_name];
         o_current_author = [NSString stringWithUTF8String: 
             playlist_GetInfo(p_playlist, i_current ,_("General"),_("Author") )];
         vlc_mutex_unlock( &p_playlist->object_lock );
@@ -665,10 +665,10 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
     {
         vlc_mutex_lock( &p_playlist->object_lock );
         o_value = [NSString stringWithUTF8String: 
-            p_playlist->pp_items[i_row]->psz_name];
+            p_playlist->pp_items[i_row]->input.psz_name];
         if( o_value == NULL )
             o_value = [NSString stringWithCString: 
-                p_playlist->pp_items[i_row]->psz_name];
+                p_playlist->pp_items[i_row]->input.psz_name];
         vlc_mutex_unlock( &p_playlist->object_lock );
     }
     else if( [[o_tc identifier] isEqualToString:@"2"] )
index 377f1a5b9301836eb15836cbab8c443222e06a60..a83f1985ef9fa5cdc749bfe60b517192a4710c44 100644 (file)
             int i_item = [o_vlc_playlist selectedPlaylistItem];
             [o_uri_txt setStringValue:
                 ([NSString stringWithUTF8String:p_playlist->
-                    pp_items[i_item]->psz_uri] == nil ) ?
+                    pp_items[i_item]->input.psz_uri] == nil ) ?
                 [NSString stringWithCString:p_playlist->
-                    pp_items[i_item]->psz_uri] :
+                    pp_items[i_item]->input.psz_uri] :
                 [NSString stringWithUTF8String:p_playlist->
-                    pp_items[i_item]->psz_uri]];
+                    pp_items[i_item]->input.psz_uri]];
 
             [o_title_txt setStringValue:
                 ([NSString stringWithUTF8String:p_playlist->
-                    pp_items[i_item]->psz_name] == nil ) ?
+                    pp_items[i_item]->input.psz_name] == nil ) ?
                 [NSString stringWithCString:p_playlist->
-                    pp_items[i_item]->psz_name] :
+                    pp_items[i_item]->input.psz_name] :
                 [NSString stringWithUTF8String:p_playlist->
-                    pp_items[i_item]->psz_name]];
+                    pp_items[i_item]->input.psz_name]];
 
             [o_author_txt setStringValue:[NSString stringWithUTF8String: playlist_GetInfo(p_playlist, i_item ,_("General"),_("Author") )]];
 
 
     if (p_playlist)                       
     {
-        vlc_mutex_lock(&p_playlist->pp_items[i_item]->lock);
+        vlc_mutex_lock(&p_playlist->pp_items[i_item]->input.lock);
         
-        p_playlist->pp_items[i_item]->psz_uri = strdup([[o_uri_txt stringValue] cString]);
-        p_playlist->pp_items[i_item]->psz_name = strdup([[o_title_txt stringValue] cString]);
+        p_playlist->pp_items[i_item]->input.psz_uri =
+            strdup([[o_uri_txt stringValue] cString]);
+        p_playlist->pp_items[i_item]->input.psz_name =
+            strdup([[o_title_txt stringValue] cString]);
         playlist_ItemAddInfo(p_playlist->pp_items[i_item],_("General"),_("Author"), [[o_author_txt stringValue] cString]);
  
-        vlc_mutex_unlock(&p_playlist->pp_items[i_item]->lock);
+        vlc_mutex_unlock(&p_playlist->pp_items[i_item]->input.lock);
         val.b_bool = VLC_TRUE;
         var_Set( p_playlist,"intf-change",val );
         vlc_object_release ( p_playlist );
@@ -206,13 +208,13 @@ static VLCInfoTreeItem *o_root_item = nil;
             {
                 if (self == o_root_item)
                 {
-                    o_children = [[NSMutableArray alloc] initWithCapacity:p_playlist->pp_items[i_item]->i_categories];
-                    for (i = 0 ; i<p_playlist->pp_items[i_item]->i_categories ; i++)
+                    o_children = [[NSMutableArray alloc] initWithCapacity:p_playlist->pp_items[i_item]->input.i_categories];
+                    for (i = 0 ; i<p_playlist->pp_items[i_item]->input.i_categories ; i++)
                     {
                         [o_children addObject:[[VLCInfoTreeItem alloc] 
                             initWithName: [NSString stringWithUTF8String:
-                                p_playlist->pp_items[i_item]->pp_categories[i]
-                                ->psz_name]
+                                p_playlist->pp_items[i_item]->input.
+                                pp_categories[i]->psz_name]
                             value: @""
                             ID: i 
                             parent: self]];
@@ -221,18 +223,18 @@ static VLCInfoTreeItem *o_root_item = nil;
                 else if (o_parent == o_root_item)
                 {
                     o_children = [[NSMutableArray alloc] initWithCapacity:
-                        p_playlist->pp_items[i_item]->
+                        p_playlist->pp_items[i_item]->input.
                         pp_categories[i_object_id]->i_infos];
-                    for (i = 0 ; i<p_playlist->pp_items[i_item]->
+                    for (i = 0 ; i<p_playlist->pp_items[i_item]->input.
                            pp_categories[i_object_id]->i_infos ; i++)
                     {
                         [o_children addObject:[[VLCInfoTreeItem alloc]
                         initWithName: [NSString stringWithUTF8String:
-                                p_playlist->pp_items[i_item]->
+                                p_playlist->pp_items[i_item]->input.
                                 pp_categories[i_object_id]->
                                 pp_infos[i]->psz_name]
                             value: [NSString stringWithUTF8String:
-                                p_playlist->pp_items[i_item]->
+                                p_playlist->pp_items[i_item]->input.
                                 pp_categories[i_object_id]->
                                 pp_infos[i]->psz_value]
                             ID: i
index 35d4a830c3200bef5ed5904425019b793b71cffa..85617e6f734fa9e8b77c3ca4a1aa2f0a13253888 100644 (file)
@@ -1018,7 +1018,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
 
     vlc_mutex_lock( &p_playlist->object_lock );
     o_title = [NSMutableString stringWithUTF8String: 
-        p_playlist->pp_items[p_playlist->i_index]->psz_uri]; 
+        p_playlist->pp_items[p_playlist->i_index]->input.psz_uri]; 
     vlc_mutex_unlock( &p_playlist->object_lock );
 
     vlc_object_release( p_playlist );
index d7c4fdcf6ffb727f6234d11ce8f79cd98eb9f4c0..c3db265341036616c2e3e0882b997482bc933f8b 100644 (file)
@@ -2,7 +2,7 @@
  * ncurses.c : NCurses plugin for vlc
  *****************************************************************************
  * Copyright (C) 2001-2004 VideoLAN
- * $Id: ncurses.c,v 1.15 2004/02/22 15:57:41 fenrir Exp $
+ * $Id$
  *
  * Authors: Sam Hocevar <sam@zoy.org>
  *          Laurent Aimar <fenrir@via.ecp.fr>
@@ -933,20 +933,21 @@ static void Redraw ( intf_thread_t *p_intf, time_t *t_last_refresh )
             {
                 attrset( A_REVERSE );
             }
-            if( !strcmp( p_playlist->pp_items[i_item]->psz_name, p_playlist->pp_items[i_item]->psz_uri ) )
+            if( !strcmp( p_playlist->pp_items[i_item]->input.psz_name,
+                         p_playlist->pp_items[i_item]->input.psz_uri ) )
             {
                 mvnprintw( y++, 1, COLS - 2, "%c %d - '%s'",
                            c,
                            i_item,
-                           p_playlist->pp_items[i_item]->psz_uri );
+                           p_playlist->pp_items[i_item]->input.psz_uri );
             }
             else
             {
                 mvnprintw( y++, 1, COLS - 2, "%c %d - '%s' (%s)",
                           c,
                           i_item,
-                          p_playlist->pp_items[i_item]->psz_uri,
-                          p_playlist->pp_items[i_item]->psz_name );
+                          p_playlist->pp_items[i_item]->input.psz_uri,
+                          p_playlist->pp_items[i_item]->input.psz_name );
             }
             if( b_selected )
             {
@@ -996,7 +997,7 @@ static void Eject ( intf_thread_t *p_intf )
         return;
     }
 
-    psz_name = p_playlist->pp_items[ p_playlist->i_index ]->psz_name;
+    psz_name = p_playlist->pp_items[ p_playlist->i_index ]->input.psz_name;
 
     if( psz_name )
     {
index c7b2f48a2ff1a16b08fdc8da1f88a4b2ff23955a..5b484a8d64f63f0fd96a57eb9d389e46a7653db2 100644 (file)
@@ -2,7 +2,7 @@
  * pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: pda_callbacks.c,v 1.29 2004/02/29 22:59:59 jpsaman Exp $
+ * $Id$
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -163,7 +163,7 @@ void PlaylistRebuildListStore( GtkListStore * p_list, playlist_t * p_playlist )
     vlc_mutex_lock( &p_playlist->object_lock );
     for( i_dummy = 0; i_dummy < p_playlist->i_size ; i_dummy++ )
     {
-        ppsz_text[0] = p_playlist->pp_items[i_dummy]->psz_name;
+        ppsz_text[0] = p_playlist->pp_items[i_dummy]->input.psz_name;
         ppsz_text[1] = "no info";
         gtk_list_store_append (p_list, &iter);
         gtk_list_store_set (p_list, &iter,