//---------------------------------------------------------------------------\r
void __fastcall TDiscDlg::ButtonOkClick( TObject *Sender )\r
{\r
- AnsiString Device, Source, Method, Title, Chapter;\r
+ AnsiString Device, Source;\r
\r
Hide();\r
\r
Device = EditDevice->Text;\r
\r
- /* Check which method was activated */\r
- if( RadioGroupType->ItemIndex == 0 )\r
- Method = "dvdold";\r
- else\r
- Method = "vcd";\r
-\r
- /* Select title and chapter */\r
- Title.sprintf( "%d", SpinEditTitle->Value );\r
- Chapter.sprintf( "%d", SpinEditChapter->Value );\r
-\r
/* Build source name and add it to playlist */\r
if ( CheckBoxMenus->Checked && RadioGroupType->ItemIndex == 0 )\r
{\r
}\r
else\r
{\r
+ AnsiString Method, Title, Chapter;\r
+ /* Select title and chapter */\r
+ Title.sprintf( "%d", SpinEditTitle->Value );\r
+ Chapter.sprintf( "%d", SpinEditChapter->Value );\r
+\r
+ /* Select access method */\r
+ if( RadioGroupType->ItemIndex == 0 )\r
+ Method = "dvdold";\r
+ else\r
+ Method = "vcd";\r
+\r
+ /* build the MRL */\r
Source = Method + "://" + Device + "@" + Title + "," + Chapter;\r
}\r
+ msg_Dbg (p_intf , Source.c_str());\r
\r
p_intf->p_sys->p_playwin->Add( Source, PLAYLIST_APPEND\r
| ( p_intf->p_sys->b_play_when_adding ? PLAYLIST_GO : 0 ),\r
Width = 23\r
Height = 13\r
Caption = '&Title:'\r
- Enabled = False\r
end\r
object LabelChapter: TLabel\r
Tag = 3\r
Width = 40\r
Height = 13\r
Caption = '&Chapter:'\r
- Enabled = False\r
end\r
object SpinEditTitle: TCSpinEdit\r
Left = 56\r
Width = 73\r
Height = 22\r
TabStop = True\r
- Color = clBtnFace\r
- Enabled = False\r
Font.Charset = DEFAULT_CHARSET\r
Font.Color = clWindowText\r
Font.Height = -11\r
Width = 73\r
Height = 22\r
TabStop = True\r
- Color = clBtnFace\r
- Enabled = False\r
MaxValue = 65535\r
MinValue = 1\r
ParentColor = False\r
Width = 97\r
Height = 17\r
Caption = '&Menus'\r
- Checked = True\r
- State = cbChecked\r
TabOrder = 0\r
OnClick = CheckBoxMenusClick\r
end\r