Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a3e1d215
Commit
a3e1d215
authored
Mar 31, 2002
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* plugins/win32: subtitles should work, now
parent
b196e281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
plugins/win32/menu.cpp
plugins/win32/menu.cpp
+7
-1
No files found.
plugins/win32/menu.cpp
View file @
a3e1d215
...
@@ -91,8 +91,12 @@ static void __fastcall LangChange( TMenuItem *RootCurrent, TMenuItem *Item,
...
@@ -91,8 +91,12 @@ static void __fastcall LangChange( TMenuItem *RootCurrent, TMenuItem *Item,
es_descriptor_t
*
p_es
;
es_descriptor_t
*
p_es
;
es_descriptor_t
*
p_es_old
;
es_descriptor_t
*
p_es_old
;
int
i_index
;
int
i_index
;
int
i_es
;
/* find the selected ES */
/* find the selected ES */
i_es
=
Item
->
Tag
;
/* find selected menu item */
i_index
=
Item2Index
(
RootCurrent
,
Item
)
-
1
;
i_index
=
Item2Index
(
RootCurrent
,
Item
)
-
1
;
if
(
i_index
<
0
)
if
(
i_index
<
0
)
{
{
...
@@ -102,7 +106,7 @@ static void __fastcall LangChange( TMenuItem *RootCurrent, TMenuItem *Item,
...
@@ -102,7 +106,7 @@ static void __fastcall LangChange( TMenuItem *RootCurrent, TMenuItem *Item,
else
else
{
{
vlc_mutex_lock
(
&
p_input_bank
->
pp_input
[
0
]
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input_bank
->
pp_input
[
0
]
->
stream
.
stream_lock
);
p_es
=
p_input_bank
->
pp_input
[
0
]
->
stream
.
pp_es
[
i_
index
];
p_es
=
p_input_bank
->
pp_input
[
0
]
->
stream
.
pp_es
[
i_
es
];
vlc_mutex_unlock
(
&
p_input_bank
->
pp_input
[
0
]
->
stream
.
stream_lock
);
vlc_mutex_unlock
(
&
p_input_bank
->
pp_input
[
0
]
->
stream
.
stream_lock
);
}
}
...
@@ -475,6 +479,7 @@ static void __fastcall LanguageMenu( TMenuItem * Root, es_descriptor_t * p_es,
...
@@ -475,6 +479,7 @@ static void __fastcall LanguageMenu( TMenuItem * Root, es_descriptor_t * p_es,
Item
->
Hint
=
Name
;
Item
->
Hint
=
Name
;
Item
->
Caption
=
Name
;
Item
->
Caption
=
Name
;
Item
->
OnClick
=
MenuItemClick
;
Item
->
OnClick
=
MenuItemClick
;
Item
->
Tag
=
-
1
;
Root
->
Add
(
Item
);
Root
->
Add
(
Item
);
/* separator item */
/* separator item */
...
@@ -507,6 +512,7 @@ static void __fastcall LanguageMenu( TMenuItem * Root, es_descriptor_t * p_es,
...
@@ -507,6 +512,7 @@ static void __fastcall LanguageMenu( TMenuItem * Root, es_descriptor_t * p_es,
Item
->
RadioItem
=
true
;
Item
->
RadioItem
=
true
;
Item
->
Hint
=
Name
;
Item
->
Hint
=
Name
;
Item
->
Caption
=
Name
;
Item
->
Caption
=
Name
;
Item
->
Tag
=
i
;
if
(
p_es
==
p_input_bank
->
pp_input
[
0
]
->
stream
.
pp_es
[
i
]
)
if
(
p_es
==
p_input_bank
->
pp_input
[
0
]
->
stream
.
pp_es
[
i
]
)
{
{
...
...
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