[vlc-commits] decoder: only update the format if a new vout was not created
Steve Lhomme
git at videolan.org
Thu Aug 2 10:07:40 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug 2 08:51:39 2018 +0200| [42b3f6cb97302d7e2383485f06c0ac856add4a31] | committer: Steve Lhomme
decoder: only update the format if a new vout was not created
If the first if is done the second one will never be true.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42b3f6cb97302d7e2383485f06c0ac856add4a31
---
src/input/decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index e40de5b161..0c7ee686b4 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -565,7 +565,7 @@ static int vout_update_format( decoder_t *p_dec )
p_owner->reset_out_state = true;
vlc_fifo_Unlock( p_owner->p_fifo );
}
-
+ else
if ( memcmp( &p_dec->fmt_out.video.mastering,
&p_owner->fmt.video.mastering,
sizeof(p_owner->fmt.video.mastering)) ||
More information about the vlc-commits
mailing list