[vlc-commits] access: bluray: always restart decoder on boundaries
Francois Cartegnie
git at videolan.org
Thu Nov 1 11:10:50 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 1 11:07:34 2018 +0100| [0160bec1b539b2df7766fc39873e304d2c761b29] | committer: Francois Cartegnie
access: bluray: always restart decoder on boundaries
Depending on pts, a late frame can still be buffered and
output with data from next clip, breaking at least still frame
end of stream, forced display then overlays.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0160bec1b539b2df7766fc39873e304d2c761b29
---
modules/access/bluray.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 26ea6ff35f..ab8d92f910 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1303,13 +1303,9 @@ static es_out_id_t *bluray_esOutAdd(es_out_t *p_out, const es_format_t *p_fmt)
msg_Info(p_demux, "Reusing ES %d", p_fmt->i_id);
p_pair->b_recyling = false;
p_es = p_pair->p_es;
- if(!es_format_IsSimilar(&fmt, &p_pair->fmt) ||
- fmt.b_packetized != p_pair->fmt.b_packetized)
- {
- es_out_Control(esout_priv->p_dst_out, ES_OUT_SET_ES_FMT, p_pair->p_es, &fmt);
- es_format_Clean(&p_pair->fmt);
- es_format_Copy(&p_pair->fmt, &fmt);
- }
+ es_out_Control(esout_priv->p_dst_out, ES_OUT_SET_ES_FMT, p_pair->p_es, &fmt);
+ es_format_Clean(&p_pair->fmt);
+ es_format_Copy(&p_pair->fmt, &fmt);
}
if (b_select)
es_out_Control(p_demux->out, ES_OUT_SET_ES, p_es);
More information about the vlc-commits
mailing list