<html><head></head><body><div class="gmail_quote">Le 2 juillet 2017 13:15:33 GMT+02:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">This fixes a busyloop that cause serious visual glitches when trying to request<br />a failing vout again and again.<br />---<br /> src/input/decoder.c | 5 ++---<br /> 1 file changed, 2 insertions(+), 3 deletions(-)<br /><br />diff --git a/src/input/decoder.c b/src/input/decoder.c<br />index dac313737a..b34e26cd4e 100644<br />--- a/src/input/decoder.c<br />+++ b/src/input/decoder.c<br />@@ -408,8 +408,7 @@ static int vout_update_format( decoder_t *p_dec )<br /> {<br /> decoder_owner_sys_t *p_owner = p_dec->p_owner;<br /> <br />- if( p_owner->p_vout == NULL<br />- || p_dec->fmt_<a href="http://out.video">out.video</a>.i_width != p_owner-><a href="http://fmt.video">fmt.video</a>.i_width<br />+ if( p_dec->fmt_<a href="http://out.video">out.video</a>.i_width != p_owner-><a href="http://fmt.video">fmt.video</a>.i_width<br /> || p_dec->fmt_<a href="http://out.video">out.video</a>.i_height != p_owner-><a href="http://fmt.video">fmt.video</a>.i_height<br /> || p_dec->fmt_<a href="http://out.video">out.video</a>.i_visible_width != p_owner-><a href="http://fmt.video">fmt.video</a>.i_visible_width<br /> || p_dec->fmt_<a href="http://out.video">out.video</a>.i_visible_height != p_owner-><a href="http://fmt.video">fmt.video</a>.i_visible_height<br />@@ -547,7 +546,7 @@ static int vout_update_format( decoder_t *p_dec )<br /> DecoderUpdateFormatLocked( p_dec );<br /> vlc_mutex_unlock( &p_owner->lock );<br /> }<br />- return 0;<br />+ return p_owner->p_vout != NULL ? 0 : -1;<br /> }<br /> <br /> static picture_t *vout_new_buffer( decoder_t *p_dec )</pre></blockquote></div><br clear="all">This seems to break changing format<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>