Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
92ee23d3
Commit
92ee23d3
authored
Jun 09, 2006
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* the first autodetected subtitles file should now be automatically enabled
parent
9b21a3e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
src/input/input.c
src/input/input.c
+25
-1
No files found.
src/input/input.c
View file @
92ee23d3
...
...
@@ -890,6 +890,10 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
char
**
subs
=
subtitles_Detect
(
p_input
,
psz_autopath
,
p_input
->
input
.
p_item
->
psz_uri
);
input_source_t
*
sub
;
vlc_value_t
count
;
vlc_value_t
list
;
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_CHOICESCOUNT
,
&
count
,
NULL
);
for
(
i
=
0
;
subs
&&
subs
[
i
];
i
++
)
{
...
...
@@ -899,7 +903,27 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
if
(
!
InputSourceInit
(
p_input
,
sub
,
subs
[
i
],
"subtitle"
,
VLC_FALSE
)
)
{
TAB_APPEND
(
p_input
->
i_slave
,
p_input
->
slave
,
sub
);
TAB_APPEND
(
p_input
->
i_slave
,
p_input
->
slave
,
sub
);
/* If no subtitle was specified, select the first
* autodetected subtitle. */
if
(
i
==
0
&&
psz_subtitle
!=
NULL
)
{
/* Select the ES */
if
(
!
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETLIST
,
&
list
,
NULL
)
)
{
if
(
count
.
i_int
==
0
)
count
.
i_int
++
;
/* if it was first one, there is disable too */
if
(
count
.
i_int
<
list
.
p_list
->
i_count
)
{
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_ES
,
&
list
.
p_list
->
p_values
[
count
.
i_int
]
);
}
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_FREELIST
,
&
list
,
NULL
);
}
}
}
}
free
(
subs
[
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