[vlc-commits] mediacodec: set b_has_format after video format update

Thomas Guillem git at videolan.org
Thu Jul 28 15:07:39 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jul 19 11:30:40 2016 +0200| [7d543af94c3e457e37356a137009d4a6d73c47fb] | committer: Thomas Guillem

mediacodec: set b_has_format after video format update

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d543af94c3e457e37356a137009d4a6d73c47fb
---

 modules/codec/omxil/mediacodec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index e80b5fe..563d91d 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -1042,13 +1042,13 @@ static int Video_ProcessOutput(decoder_t *p_dec, mc_api_out *p_out,
             p_sys->u.video.i_stride = p_dec->fmt_out.video.i_width;
         }
 
-        p_sys->b_has_format = true;
-
         if (decoder_UpdateVideoFormat(p_dec) != 0)
         {
             msg_Err(p_dec, "decoder_UpdateVideoFormat failed");
             return -1;
         }
+
+        p_sys->b_has_format = true;
         return 0;
     }
 }



More information about the vlc-commits mailing list