* 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>
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()
{
// 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;
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 );
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 );
{
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"] )
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 );
{
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]];
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
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 );
* 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>
{
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 )
{
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 )
{
* 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>
*
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,