/* Build source name and add it to playlist */\r
Source = Method + ":" + Device + "@" + Title + "," + Chapter;\r
\r
- p_intf->p_sys->p_playwin->Add( Source, PLAYLIST_APPEND | PLAYLIST_GO,\r
- PLAYLIST_END );\r
+ p_intf->p_sys->p_playwin->Add( Source, PLAYLIST_APPEND\r
+ | ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 ),\r
+ PLAYLIST_END );\r
}\r
//---------------------------------------------------------------------------\r
void __fastcall TDiscDlg::RadioGroupTypeClick( TObject *Sender )\r
/* add the new file to the interface playlist */\r
for ( int i = 0 ; i < OpenDialog1->Files->Count ; i++ )\r
p_intf->p_sys->p_playwin->Add( OpenDialog1->Files->Strings[i],\r
- PLAYLIST_APPEND,\r
- PLAYLIST_END );\r
+ PLAYLIST_APPEND\r
+ | ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 ),\r
+ PLAYLIST_END );\r
};\r
}\r
//---------------------------------------------------------------------------\r
Source = "udp:@:" + IntToStr( i_port );\r
\r
p_intf->p_sys->p_playwin->Add( Source,\r
- PLAYLIST_APPEND | PLAYLIST_GO,\r
- PLAYLIST_END );\r
+ PLAYLIST_APPEND\r
+ | ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 )\r
+ , PLAYLIST_END );\r
break;\r
\r
/* UDP Multicast */\r
Source = "udp:@" + Address + ":" + IntToStr( i_port );\r
\r
p_intf->p_sys->p_playwin->Add( Source,\r
- PLAYLIST_APPEND | PLAYLIST_GO,\r
- PLAYLIST_END );\r
+ PLAYLIST_APPEND\r
+ | ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 )\r
+ , PLAYLIST_END );\r
\r
/* Channel server */\r
case 2:\r
}\r
\r
p_intf->p_sys->p_playwin->Add( Source,\r
- PLAYLIST_APPEND | PLAYLIST_GO,\r
- PLAYLIST_END );\r
+ PLAYLIST_APPEND\r
+ | ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 )\r
+ , PLAYLIST_END );\r
\r
break;\r
}\r
****************************************************************************/\r
void __fastcall TPlaylistDlg::MenuAddFileClick( TObject *Sender )\r
{\r
+ p_intf->p_sys->b_play_when_adding = false;\r
p_intf->p_sys->p_window->OpenFileActionExecute( Sender );\r
+ p_intf->p_sys->b_play_when_adding = true;\r
}\r
//---------------------------------------------------------------------------\r
void __fastcall TPlaylistDlg::MenuAddDiscClick( TObject *Sender )\r
{\r
+ p_intf->p_sys->b_play_when_adding = false;\r
p_intf->p_sys->p_window->OpenDiscActionExecute( Sender );\r
+ p_intf->p_sys->b_play_when_adding = true;\r
}\r
//---------------------------------------------------------------------------\r
void __fastcall TPlaylistDlg::MenuAddNetClick( TObject *Sender )\r
{\r
+ p_intf->p_sys->b_play_when_adding = false;\r
p_intf->p_sys->p_window->NetworkStreamActionExecute( Sender );\r
+ p_intf->p_sys->b_play_when_adding = true;\r
}\r
//---------------------------------------------------------------------------\r
void __fastcall TPlaylistDlg::MenuAddUrlClick( TObject *Sender )\r
Top = 10\r
Width = 305\r
Height = 331\r
- Anchors = [akTop, akBottom]\r
+ Anchors = [akLeft, akTop, akRight, akBottom]\r
Columns = <\r
item\r
Caption = 'Filename'\r
* win32.cpp : Win32 interface plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: win32.cpp,v 1.5 2002/12/13 03:52:58 videolan Exp $
+ * $Id: win32.cpp,v 1.6 2002/12/13 17:05:12 babal Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
p_intf->p_sys->p_input = NULL;
p_intf->p_sys->i_playing = -1;
+ p_intf->p_sys->b_play_when_adding = true;
p_intf->p_sys->b_slider_free = 1;
return( 0 );
\r
/* Playlist management */\r
int i_playing; /* playlist selected item */\r
+ vlc_bool_t b_play_when_adding;\r
\r
/* The window labels for DVD mode */\r
TLabel * p_label_title;\r