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
caf2925c
Commit
caf2925c
authored
Feb 08, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* input.c: don't add subtitle track twice when using --sub-file and
auto-detection.
parent
e79dec99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/input/input.c
src/input/input.c
+10
-5
No files found.
src/input/input.c
View file @
caf2925c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2004 VideoLAN
* Copyright (C) 1998-2004 VideoLAN
* $Id: input.c,v 1.28
7 2004/02/06 23:43:32 gbazin
Exp $
* $Id: input.c,v 1.28
8 2004/02/08 17:21:50 fenrir
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -536,6 +536,7 @@ static int InitThread( input_thread_t * p_input )
...
@@ -536,6 +536,7 @@ static int InitThread( input_thread_t * p_input )
int64_t
i_microsecondperframe
;
int64_t
i_microsecondperframe
;
subtitle_demux_t
*
p_sub_toselect
=
NULL
;
subtitle_demux_t
*
p_sub_toselect
=
NULL
;
char
*
psz_sub_file
=
NULL
;
/* Skip the plug-in names */
/* Skip the plug-in names */
while
(
*
psz_parser
&&
*
psz_parser
!=
':'
)
while
(
*
psz_parser
&&
*
psz_parser
!=
':'
)
...
@@ -893,7 +894,7 @@ static int InitThread( input_thread_t * p_input )
...
@@ -893,7 +894,7 @@ static int InitThread( input_thread_t * p_input )
TAB_APPEND
(
p_input
->
p_sys
->
i_sub
,
p_input
->
p_sys
->
sub
,
p_sub
);
TAB_APPEND
(
p_input
->
p_sys
->
i_sub
,
p_input
->
p_sys
->
sub
,
p_sub
);
}
}
}
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
)
;
psz_sub_file
=
val
.
psz_string
;
var_Get
(
p_input
,
"sub-autodetect-file"
,
&
val
);
var_Get
(
p_input
,
"sub-autodetect-file"
,
&
val
);
if
(
val
.
b_bool
)
if
(
val
.
b_bool
)
...
@@ -904,15 +905,19 @@ static int InitThread( input_thread_t * p_input )
...
@@ -904,15 +905,19 @@ static int InitThread( input_thread_t * p_input )
char
**
tmp2
=
tmp
;
char
**
tmp2
=
tmp
;
for
(
i
=
0
;
*
tmp2
!=
NULL
;
i
++
)
for
(
i
=
0
;
*
tmp2
!=
NULL
;
i
++
)
{
{
if
(
(
p_sub
=
subtitle_New
(
p_input
,
*
tmp2
,
if
(
psz_sub_file
==
NULL
||
strcmp
(
psz_sub_file
,
*
tmp2
)
)
i_microsecondperframe
)
)
)
{
{
TAB_APPEND
(
p_input
->
p_sys
->
i_sub
,
p_input
->
p_sys
->
sub
,
p_sub
);
if
(
(
p_sub
=
subtitle_New
(
p_input
,
*
tmp2
,
i_microsecondperframe
)
)
)
{
TAB_APPEND
(
p_input
->
p_sys
->
i_sub
,
p_input
->
p_sys
->
sub
,
p_sub
);
}
}
}
free
(
*
tmp2
++
);
free
(
*
tmp2
++
);
}
}
free
(
tmp
);
free
(
tmp
);
}
}
if
(
psz_sub_file
)
free
(
psz_sub_file
);
es_out_Control
(
p_input
->
p_es_out
,
ES_OUT_SET_ACTIVE
,
VLC_TRUE
);
es_out_Control
(
p_input
->
p_es_out
,
ES_OUT_SET_ACTIVE
,
VLC_TRUE
);
val
.
b_bool
=
VLC_FALSE
;
val
.
b_bool
=
VLC_FALSE
;
...
...
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