Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
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