Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c5197167
Commit
c5197167
authored
Jan 06, 2003
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/win32/network.cpp: added support for ftp and mms
* modules/gui/win32/disc.cpp: cosmetic
parent
ebc092f4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
41 deletions
+50
-41
modules/gui/win32/disc.cpp
modules/gui/win32/disc.cpp
+14
-9
modules/gui/win32/disc.dfm
modules/gui/win32/disc.dfm
+2
-2
modules/gui/win32/disc.h
modules/gui/win32/disc.h
+3
-2
modules/gui/win32/network.cpp
modules/gui/win32/network.cpp
+6
-3
modules/gui/win32/network.dfm
modules/gui/win32/network.dfm
+25
-25
No files found.
modules/gui/win32/disc.cpp
View file @
c5197167
...
...
@@ -79,13 +79,13 @@ void __fastcall TDiscDlg::ButtonOkClick( TObject *Sender )
Chapter
.
sprintf
(
"%d"
,
SpinEditChapter
->
Value
);
/* Build source name and add it to playlist */
if
(
CheckBoxMenus
->
Checked
)
if
(
CheckBoxMenus
->
Checked
&&
RadioGroupType
->
ItemIndex
==
0
)
{
Source
=
Method
+
":
"
+
Device
;
Source
=
"dvdplay://
"
+
Device
;
}
else
{
Source
=
Method
+
":"
+
Device
+
"@"
+
Title
+
","
+
Chapter
;
Source
=
Method
+
":
//
"
+
Device
+
"@"
+
Title
+
","
+
Chapter
;
}
p_intf
->
p_sys
->
p_playwin
->
Add
(
Source
,
PLAYLIST_APPEND
...
...
@@ -102,13 +102,14 @@ void __fastcall TDiscDlg::RadioGroupTypeClick( TObject *Sender )
{
psz_device
=
config_GetPsz
(
p_intf
,
"dvd"
);
CheckBoxMenus
->
Enabled
=
true
;
CheckBoxMenus
->
Checked
=
true
;
DisableTitles
(
CheckBoxMenus
->
Checked
)
;
}
else
{
psz_device
=
config_GetPsz
(
p_intf
,
"vcd"
);
CheckBoxMenus
->
Checked
=
false
;
CheckBoxMenus
->
Enabled
=
false
;
/* We don't support menus for vcds, so we use titles and chapters */
DisableTitles
(
false
);
}
if
(
psz_device
)
...
...
@@ -118,10 +119,14 @@ void __fastcall TDiscDlg::RadioGroupTypeClick( TObject *Sender )
}
}
//---------------------------------------------------------------------------
void
__fastcall
TDiscDlg
::
CheckBoxMenusClick
(
TObject
*
Sender
)
void
__fastcall
TDiscDlg
::
CheckBoxMenusClick
(
TObject
*
Sender
)
{
DisableTitles
(
CheckBoxMenus
->
Checked
);
}
//---------------------------------------------------------------------------
void
__fastcall
TDiscDlg
::
DisableTitles
(
Boolean
disable
)
{
if
(
CheckBoxMenus
->
Checked
)
if
(
disable
)
{
LabelTitle
->
Enabled
=
false
;
LabelChapter
->
Enabled
=
false
;
...
...
modules/gui/win32/disc.dfm
View file @
c5197167
object DiscDlg: TDiscDlg
Left =
502
Top = 3
36
Left =
390
Top = 3
20
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsDialog
Caption = 'Open disc'
...
...
modules/gui/win32/disc.h
View file @
c5197167
...
...
@@ -52,9 +52,10 @@ __published: // IDE-managed Components
void
__fastcall
ButtonCancelClick
(
TObject
*
Sender
);
void
__fastcall
ButtonOkClick
(
TObject
*
Sender
);
void
__fastcall
RadioGroupTypeClick
(
TObject
*
Sender
);
void
__fastcall
CheckBoxMenusClick
(
TObject
*
Sender
);
void
__fastcall
CheckBoxMenusClick
(
TObject
*
Sender
);
private:
// User declarations
intf_thread_t
*
p_intf
;
void
__fastcall
DisableTitles
(
Boolean
disable
);
public:
// User declarations
__fastcall
TDiscDlg
(
TComponent
*
Owner
,
intf_thread_t
*
_p_intf
);
};
...
...
modules/gui/win32/network.cpp
View file @
c5197167
...
...
@@ -143,8 +143,11 @@ void __fastcall TNetworkDlg::BitBtnOkClick( TObject *Sender )
config_PutInt
(
p_intf
,
"network-channel"
,
FALSE
);
Address
=
EditHTTPURL
->
Text
;
/* Build source name with a basic test */
if
(
Address
.
SubString
(
1
,
4
)
==
"http"
)
/* Build source name with a basic test;
* http is the default protocol */
if
(
Address
.
SubString
(
1
,
7
)
==
"http://"
||
Address
.
SubString
(
1
,
6
)
==
"ftp://"
||
Address
.
SubString
(
1
,
6
)
==
"mms://"
)
{
Source
=
Address
;
}
...
...
modules/gui/win32/network.dfm
View file @
c5197167
object NetworkDlg: TNetworkDlg
Left = 3
6
9
Top =
301
Left = 3
2
9
Top =
253
BorderStyle = bsDialog
Caption = 'Open network'
ClientHeight = 206
ClientWidth = 4
82
ClientWidth = 4
97
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
...
...
@@ -249,7 +249,7 @@ object NetworkDlg: TNetworkDlg
TextHeight = 13
object BitBtnOk: TBitBtn
Tag = 3
Left =
40
Left =
52
Top = 168
Width = 177
Height = 25
...
...
@@ -259,7 +259,7 @@ object NetworkDlg: TNetworkDlg
end
object BitBtnCancel: TBitBtn
Tag = 3
Left = 2
56
Left = 2
68
Top = 168
Width = 177
Height = 25
...
...
@@ -271,13 +271,13 @@ object NetworkDlg: TNetworkDlg
Tag = 3
Left = 8
Top = 8
Width = 4
65
Width = 4
81
Height = 145
Caption = 'Network mode'
TabOrder = 2
object LabelUDPPort: TLabel
Tag = 3
Left = 1
48
Left = 1
72
Top = 26
Width = 22
Height = 13
...
...
@@ -285,7 +285,7 @@ object NetworkDlg: TNetworkDlg
end
object LabelMulticastPort: TLabel
Tag = 3
Left = 3
64
Left = 3
88
Top = 54
Width = 22
Height = 13
...
...
@@ -294,7 +294,7 @@ object NetworkDlg: TNetworkDlg
end
object LabelCSPort: TLabel
Tag = 3
Left = 3
64
Left = 3
88
Top = 82
Width = 22
Height = 13
...
...
@@ -303,7 +303,7 @@ object NetworkDlg: TNetworkDlg
end
object LabelMulticastAddress: TLabel
Tag = 3
Left = 1
39
Left = 1
63
Top = 54
Width = 41
Height = 13
...
...
@@ -312,7 +312,7 @@ object NetworkDlg: TNetworkDlg
end
object LabelCSAddress: TLabel
Tag = 3
Left = 1
39
Left = 1
63
Top = 82
Width = 41
Height = 13
...
...
@@ -321,7 +321,7 @@ object NetworkDlg: TNetworkDlg
end
object LabelHTTPURL: TLabel
Tag = 3
Left = 1
47
Left = 1
71
Top = 110
Width = 25
Height = 13
...
...
@@ -332,9 +332,9 @@ object NetworkDlg: TNetworkDlg
Tag = 3
Left = 16
Top = 24
Width =
97
Width =
113
Height = 17
Caption = 'UDP'
Caption = 'UDP
/RTP
'
Checked = True
TabOrder = 0
TabStop = True
...
...
@@ -344,9 +344,9 @@ object NetworkDlg: TNetworkDlg
Tag = 3
Left = 16
Top = 52
Width =
97
Width =
113
Height = 17
Caption = 'UDP Multicast'
Caption = 'UDP
/RTP
Multicast'
TabOrder = 1
OnEnter = RadioButtonMulticastEnter
end
...
...
@@ -354,7 +354,7 @@ object NetworkDlg: TNetworkDlg
Tag = 3
Left = 16
Top = 80
Width =
97
Width =
113
Height = 17
Caption = 'Channel Server'
TabOrder = 2
...
...
@@ -364,15 +364,15 @@ object NetworkDlg: TNetworkDlg
Tag = 3
Left = 16
Top = 108
Width =
97
Width =
113
Height = 17
Caption = 'HTTP'
Caption = 'HTTP
/FTP/MMS
'
TabOrder = 3
OnEnter = RadioButtonHTTPEnter
end
object ComboBoxMulticastAddress: TComboBox
Tag = 5
Left =
184
Left =
208
Top = 50
Width = 161
Height = 21
...
...
@@ -382,7 +382,7 @@ object NetworkDlg: TNetworkDlg
end
object ComboBoxCSAddress: TComboBox
Tag = 5
Left =
184
Left =
208
Top = 78
Width = 161
Height = 21
...
...
@@ -395,7 +395,7 @@ object NetworkDlg: TNetworkDlg
end
object EditHTTPURL: TEdit
Tag = 5
Left =
184
Left =
208
Top = 106
Width = 265
Height = 21
...
...
@@ -403,7 +403,7 @@ object NetworkDlg: TNetworkDlg
TabOrder = 9
end
object SpinEditUDPPort: TCSpinEdit
Left =
184
Left =
208
Top = 21
Width = 57
Height = 22
...
...
@@ -414,7 +414,7 @@ object NetworkDlg: TNetworkDlg
Value = 1234
end
object SpinEditMulticastPort: TCSpinEdit
Left =
392
Left =
416
Top = 49
Width = 57
Height = 22
...
...
@@ -426,7 +426,7 @@ object NetworkDlg: TNetworkDlg
Value = 1234
end
object SpinEditCSPort: TCSpinEdit
Left =
392
Left =
416
Top = 77
Width = 57
Height = 22
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment