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
e179dada
Commit
e179dada
authored
Aug 22, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/es_out.c: when removing an active track, re-run the track selection algo.
parent
630e3b7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/input/es_out.c
src/input/es_out.c
+13
-0
No files found.
src/input/es_out.c
View file @
e179dada
...
...
@@ -1058,6 +1058,8 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
static
void
EsOutDel
(
es_out_t
*
out
,
es_out_id_t
*
es
)
{
es_out_sys_t
*
p_sys
=
out
->
p_sys
;
vlc_bool_t
b_reselect
=
VLC_FALSE
;
int
i
;
/* We don't try to reselect */
if
(
es
->
p_dec
)
...
...
@@ -1074,6 +1076,9 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
msg_Dbg
(
p_sys
->
p_input
,
"Program doesn't contain anymore ES"
);
}
if
(
p_sys
->
p_es_audio
==
es
||
p_sys
->
p_es_video
==
es
||
p_sys
->
p_es_sub
==
es
)
b_reselect
=
VLC_TRUE
;
if
(
p_sys
->
p_es_audio
==
es
)
p_sys
->
p_es_audio
=
NULL
;
if
(
p_sys
->
p_es_video
==
es
)
p_sys
->
p_es_video
=
NULL
;
if
(
p_sys
->
p_es_sub
==
es
)
p_sys
->
p_es_sub
=
NULL
;
...
...
@@ -1091,6 +1096,14 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
break
;
}
/* Re-select another track when needed */
if
(
b_reselect
)
for
(
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
{
if
(
es
->
fmt
.
i_cat
==
p_sys
->
es
[
i
]
->
fmt
.
i_cat
)
EsOutSelect
(
out
,
p_sys
->
es
[
i
],
VLC_FALSE
);
}
if
(
es
->
psz_language
)
free
(
es
->
psz_language
);
if
(
es
->
psz_language_code
)
...
...
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