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
970fb944
Commit
970fb944
authored
Mar 18, 2004
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting the subtitle track from the VCD tab (by usurping the
"Chapter" entry).
parent
e5a7499f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
13 deletions
+31
-13
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+31
-13
No files found.
modules/gui/wxwindows/open.cpp
View file @
970fb944
...
@@ -679,7 +679,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
...
@@ -679,7 +679,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
switch
(
i_disc_type_selection
)
switch
(
i_disc_type_selection
)
{
{
case
0
:
case
0
:
/* DVD with menues */
disc_chapter
->
Enable
();
disc_chapter
->
Enable
();
disc_chapter_label
->
Enable
();
disc_chapter_label
->
Enable
();
mrltemp
=
wxT
(
"dvd://"
)
mrltemp
=
wxT
(
"dvd://"
)
...
@@ -688,7 +688,8 @@ void OpenDialog::UpdateMRL( int i_access_method )
...
@@ -688,7 +688,8 @@ void OpenDialog::UpdateMRL( int i_access_method )
disc_title
->
GetValue
(),
disc_title
->
GetValue
(),
disc_chapter
->
GetValue
()
);
disc_chapter
->
GetValue
()
);
break
;
break
;
case
1
:
case
1
:
/* DVD of some sort */
disc_chapter
->
Enable
();
disc_chapter
->
Enable
();
disc_chapter_label
->
Enable
();
disc_chapter_label
->
Enable
();
mrltemp
=
wxT
(
"dvdsimple://"
)
mrltemp
=
wxT
(
"dvdsimple://"
)
...
@@ -697,9 +698,16 @@ void OpenDialog::UpdateMRL( int i_access_method )
...
@@ -697,9 +698,16 @@ void OpenDialog::UpdateMRL( int i_access_method )
disc_title
->
GetValue
(),
disc_title
->
GetValue
(),
disc_chapter
->
GetValue
()
);
disc_chapter
->
GetValue
()
);
break
;
break
;
case
2
:
disc_chapter
->
Disable
();
case
2
:
/* VCD of some sort */
disc_chapter_label
->
Disable
();
{
/* The chapter object is used for subtitles */
int
i_subtitle
=
disc_chapter
->
GetValue
();
config_PutInt
(
p_intf
,
"spu-channel"
,
i_subtitle
);
disc_chapter
->
Enable
();
disc_chapter_label
->
Enable
();
#ifdef HAVE_VCDX
#ifdef HAVE_VCDX
if
(
disc_title
->
GetValue
()
)
if
(
disc_title
->
GetValue
()
)
mrltemp
=
wxT
(
"vcdx://"
)
mrltemp
=
wxT
(
"vcdx://"
)
...
@@ -719,7 +727,10 @@ void OpenDialog::UpdateMRL( int i_access_method )
...
@@ -719,7 +727,10 @@ void OpenDialog::UpdateMRL( int i_access_method )
disc_title
->
GetValue
()
);
disc_title
->
GetValue
()
);
#endif
#endif
break
;
break
;
case
3
:
}
case
3
:
/* CD-DA */
disc_chapter
->
Disable
();
disc_chapter
->
Disable
();
disc_chapter_label
->
Disable
();
disc_chapter_label
->
Disable
();
#ifdef HAVE_CDDAX
#ifdef HAVE_CDDAX
...
@@ -1050,6 +1061,11 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
...
@@ -1050,6 +1061,11 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
}
}
disc_title
->
SetRange
(
i_selection
,
255
);
disc_title
->
SetRange
(
i_selection
,
255
);
disc_title
->
SetValue
(
i_selection
);
disc_title
->
SetValue
(
i_selection
);
disc_chapter
->
SetRange
(
1
,
255
);
disc_chapter
->
SetValue
(
1
);
disc_chapter_label
->
SetLabel
(
wxU
(
_
(
"Chapter"
))
);
break
;
break
;
case
2
:
/* VCD of some sort */
case
2
:
/* VCD of some sort */
...
@@ -1079,6 +1095,11 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
...
@@ -1079,6 +1095,11 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
disc_title
->
SetRange
(
1
,
98
);
disc_title
->
SetRange
(
1
,
98
);
#endif
#endif
disc_title
->
SetValue
(
i_selection
);
disc_title
->
SetValue
(
i_selection
);
/* We use the chapter to set subtitle number */
disc_chapter_label
->
SetLabel
(
wxU
(
_
(
"Subtitle"
))
);
disc_chapter
->
SetRange
(
-
1
,
4
);
disc_chapter
->
SetValue
(
config_GetInt
(
p_intf
,
"spu-channel"
)
);
break
;
break
;
case
3
:
/* CD-DA */
case
3
:
/* CD-DA */
...
@@ -1106,9 +1127,6 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
...
@@ -1106,9 +1127,6 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
if
(
psz_device
)
free
(
psz_device
);
if
(
psz_device
)
free
(
psz_device
);
disc_chapter
->
SetRange
(
1
,
255
);
disc_chapter
->
SetValue
(
1
);
UpdateMRL
(
DISC_ACCESS
);
UpdateMRL
(
DISC_ACCESS
);
}
}
...
...
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