Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f335a2a0
Commit
f335a2a0
authored
Jan 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* input: fix to avoid forced subtitle not selected.
parent
34f4d18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/input/input.c
src/input/input.c
+11
-6
No files found.
src/input/input.c
View file @
f335a2a0
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998-2004 VideoLAN
* $Id: input.c,v 1.27
3 2004/01/06 12:02:06 zorglub
Exp $
* $Id: input.c,v 1.27
4 2004/01/07 17:57:56 fenrir
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -544,13 +544,14 @@ static int InitThread( input_thread_t * p_input )
float
f_fps
;
playlist_t
*
p_playlist
;
mtime_t
i_length
;
/* Parse source string. Syntax : [[<access>][/<demux>]:][<source>] */
char
*
psz_parser
=
p_input
->
psz_dupsource
=
strdup
(
p_input
->
psz_source
);
vlc_value_t
val
;
subtitle_demux_t
*
p_sub
;
int64_t
i_microsecondperframe
;
subtitle_demux_t
*
p_sub_toselect
=
NULL
;
/* Skip the plug-in names */
while
(
*
psz_parser
&&
*
psz_parser
!=
':'
)
{
...
...
@@ -824,11 +825,10 @@ static int InitThread( input_thread_t * p_input )
var_Get
(
p_input
,
"sub-file"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
{
subtitle_demux_t
*
p_sub
;
if
(
(
p_sub
=
subtitle_New
(
p_input
,
strdup
(
val
.
psz_string
),
i_microsecondperframe
,
0
)
)
)
{
/* Select this ES by default */
es_out_Control
(
p_input
->
p_es_out
,
ES_OUT_SET_ES_STATE
,
p_sub
->
p_es
,
VLC_TRUE
);
p_sub_toselect
=
p_sub
;
TAB_APPEND
(
p_input
->
p_sys
->
i_sub
,
p_input
->
p_sys
->
sub
,
p_sub
);
}
}
...
...
@@ -837,6 +837,7 @@ static int InitThread( input_thread_t * p_input )
var_Get
(
p_input
,
"sub-autodetect-file"
,
&
val
);
if
(
val
.
b_bool
)
{
subtitle_demux_t
*
p_sub
;
int
i
;
char
**
tmp
=
subtitles_Detect
(
p_input
,
""
,
p_input
->
psz_source
);
char
**
tmp2
=
tmp
;
...
...
@@ -858,6 +859,10 @@ static int InitThread( input_thread_t * p_input )
}
es_out_Control
(
p_input
->
p_es_out
,
ES_OUT_SET_MODE
,
val
.
b_bool
?
ES_OUT_MODE_ALL
:
ES_OUT_MODE_AUTO
);
if
(
p_sub_toselect
)
{
es_out_Control
(
p_input
->
p_es_out
,
ES_OUT_SET_ES
,
p_sub_toselect
->
p_es
,
VLC_TRUE
);
}
return
VLC_SUCCESS
;
}
...
...
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