Commit d93ca7c4 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/*: compilation fixes for the new input_item_t change.

parent e3b7e2fe
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port) * VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net> * Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -402,7 +402,7 @@ int VlcWrapper::PlaylistSize() ...@@ -402,7 +402,7 @@ int VlcWrapper::PlaylistSize()
char * VlcWrapper::PlaylistItemName( int i ) 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() int VlcWrapper::PlaylistCurrent()
...@@ -707,8 +707,8 @@ VlcWrapper::PlaylistCloneItem( void* castToItem ) const ...@@ -707,8 +707,8 @@ VlcWrapper::PlaylistCloneItem( void* castToItem ) const
{ {
// make a copy of the item at index // make a copy of the item at index
*copy = *item; *copy = *item;
copy->psz_name = strdup( item->psz_name ); copy->input.psz_name = strdup( item->input.psz_name );
copy->psz_uri = strdup( item->psz_uri ); copy->input.psz_uri = strdup( item->input.psz_uri );
} }
} }
return (void*)copy; return (void*)copy;
...@@ -786,7 +786,7 @@ bool VlcWrapper::IsUsingMenus() ...@@ -786,7 +786,7 @@ bool VlcWrapper::IsUsingMenus()
return false; 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 ) ) if( !strncmp( psz_name, "dvdplay:", 8 ) )
{ {
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
......
...@@ -404,7 +404,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -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 ); vlc_mutex_lock( &p_playlist->object_lock );
o_current_name = [NSString stringWithUTF8String: 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: o_current_author = [NSString stringWithUTF8String:
playlist_GetInfo(p_playlist, i_current ,_("General"),_("Author") )]; playlist_GetInfo(p_playlist, i_current ,_("General"),_("Author") )];
vlc_mutex_unlock( &p_playlist->object_lock ); 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*/ ...@@ -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 ); vlc_mutex_lock( &p_playlist->object_lock );
o_value = [NSString stringWithUTF8String: 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 ) if( o_value == NULL )
o_value = [NSString stringWithCString: 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 ); vlc_mutex_unlock( &p_playlist->object_lock );
} }
else if( [[o_tc identifier] isEqualToString:@"2"] ) else if( [[o_tc identifier] isEqualToString:@"2"] )
......
...@@ -68,19 +68,19 @@ ...@@ -68,19 +68,19 @@
int i_item = [o_vlc_playlist selectedPlaylistItem]; int i_item = [o_vlc_playlist selectedPlaylistItem];
[o_uri_txt setStringValue: [o_uri_txt setStringValue:
([NSString stringWithUTF8String:p_playlist-> ([NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_uri] == nil ) ? pp_items[i_item]->input.psz_uri] == nil ) ?
[NSString stringWithCString:p_playlist-> [NSString stringWithCString:p_playlist->
pp_items[i_item]->psz_uri] : pp_items[i_item]->input.psz_uri] :
[NSString stringWithUTF8String:p_playlist-> [NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_uri]]; pp_items[i_item]->input.psz_uri]];
[o_title_txt setStringValue: [o_title_txt setStringValue:
([NSString stringWithUTF8String:p_playlist-> ([NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_name] == nil ) ? pp_items[i_item]->input.psz_name] == nil ) ?
[NSString stringWithCString:p_playlist-> [NSString stringWithCString:p_playlist->
pp_items[i_item]->psz_name] : pp_items[i_item]->input.psz_name] :
[NSString stringWithUTF8String:p_playlist-> [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") )]]; [o_author_txt setStringValue:[NSString stringWithUTF8String: playlist_GetInfo(p_playlist, i_item ,_("General"),_("Author") )]];
...@@ -108,13 +108,15 @@ ...@@ -108,13 +108,15 @@
if (p_playlist) 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]->input.psz_uri =
p_playlist->pp_items[i_item]->psz_name = strdup([[o_title_txt stringValue] cString]); 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]); 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; val.b_bool = VLC_TRUE;
var_Set( p_playlist,"intf-change",val ); var_Set( p_playlist,"intf-change",val );
vlc_object_release ( p_playlist ); vlc_object_release ( p_playlist );
...@@ -206,13 +208,13 @@ static VLCInfoTreeItem *o_root_item = nil; ...@@ -206,13 +208,13 @@ static VLCInfoTreeItem *o_root_item = nil;
{ {
if (self == o_root_item) if (self == o_root_item)
{ {
o_children = [[NSMutableArray alloc] initWithCapacity:p_playlist->pp_items[i_item]->i_categories]; o_children = [[NSMutableArray alloc] initWithCapacity:p_playlist->pp_items[i_item]->input.i_categories];
for (i = 0 ; i<p_playlist->pp_items[i_item]->i_categories ; i++) for (i = 0 ; i<p_playlist->pp_items[i_item]->input.i_categories ; i++)
{ {
[o_children addObject:[[VLCInfoTreeItem alloc] [o_children addObject:[[VLCInfoTreeItem alloc]
initWithName: [NSString stringWithUTF8String: initWithName: [NSString stringWithUTF8String:
p_playlist->pp_items[i_item]->pp_categories[i] p_playlist->pp_items[i_item]->input.
->psz_name] pp_categories[i]->psz_name]
value: @"" value: @""
ID: i ID: i
parent: self]]; parent: self]];
...@@ -221,18 +223,18 @@ static VLCInfoTreeItem *o_root_item = nil; ...@@ -221,18 +223,18 @@ static VLCInfoTreeItem *o_root_item = nil;
else if (o_parent == o_root_item) else if (o_parent == o_root_item)
{ {
o_children = [[NSMutableArray alloc] initWithCapacity: 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]; 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++) pp_categories[i_object_id]->i_infos ; i++)
{ {
[o_children addObject:[[VLCInfoTreeItem alloc] [o_children addObject:[[VLCInfoTreeItem alloc]
initWithName: [NSString stringWithUTF8String: initWithName: [NSString stringWithUTF8String:
p_playlist->pp_items[i_item]-> p_playlist->pp_items[i_item]->input.
pp_categories[i_object_id]-> pp_categories[i_object_id]->
pp_infos[i]->psz_name] pp_infos[i]->psz_name]
value: [NSString stringWithUTF8String: value: [NSString stringWithUTF8String:
p_playlist->pp_items[i_item]-> p_playlist->pp_items[i_item]->input.
pp_categories[i_object_id]-> pp_categories[i_object_id]->
pp_infos[i]->psz_value] pp_infos[i]->psz_value]
ID: i ID: i
......
...@@ -1018,7 +1018,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -1018,7 +1018,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->object_lock );
o_title = [NSMutableString stringWithUTF8String: 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_mutex_unlock( &p_playlist->object_lock );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ncurses.c : NCurses plugin for vlc * ncurses.c : NCurses plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2004 VideoLAN * 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> * Authors: Sam Hocevar <sam@zoy.org>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -933,20 +933,21 @@ static void Redraw ( intf_thread_t *p_intf, time_t *t_last_refresh ) ...@@ -933,20 +933,21 @@ static void Redraw ( intf_thread_t *p_intf, time_t *t_last_refresh )
{ {
attrset( A_REVERSE ); 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'", mvnprintw( y++, 1, COLS - 2, "%c %d - '%s'",
c, c,
i_item, i_item,
p_playlist->pp_items[i_item]->psz_uri ); p_playlist->pp_items[i_item]->input.psz_uri );
} }
else else
{ {
mvnprintw( y++, 1, COLS - 2, "%c %d - '%s' (%s)", mvnprintw( y++, 1, COLS - 2, "%c %d - '%s' (%s)",
c, c,
i_item, i_item,
p_playlist->pp_items[i_item]->psz_uri, p_playlist->pp_items[i_item]->input.psz_uri,
p_playlist->pp_items[i_item]->psz_name ); p_playlist->pp_items[i_item]->input.psz_name );
} }
if( b_selected ) if( b_selected )
{ {
...@@ -996,7 +997,7 @@ static void Eject ( intf_thread_t *p_intf ) ...@@ -996,7 +997,7 @@ static void Eject ( intf_thread_t *p_intf )
return; 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 ) if( psz_name )
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin. * pda_callbacks.c : Callbacks for the pda Linux Gtk+ plugin.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * 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> * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* *
...@@ -163,7 +163,7 @@ void PlaylistRebuildListStore( GtkListStore * p_list, playlist_t * p_playlist ) ...@@ -163,7 +163,7 @@ void PlaylistRebuildListStore( GtkListStore * p_list, playlist_t * p_playlist )
vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->object_lock );
for( i_dummy = 0; i_dummy < p_playlist->i_size ; i_dummy++ ) 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"; ppsz_text[1] = "no info";
gtk_list_store_append (p_list, &iter); gtk_list_store_append (p_list, &iter);
gtk_list_store_set (p_list, &iter, gtk_list_store_set (p_list, &iter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment