[vlc-commits] mediacodec: clear the video surface when stopping

Thomas Guillem git at videolan.org
Wed Oct 5 12:16:26 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct  5 11:51:48 2016 +0200| [bf556ed2e7162bd066e5b165561058307be50cbf] | committer: Thomas Guillem

mediacodec: clear the video surface when stopping

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

 modules/codec/omxil/mediacodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 0a860b7..603c082 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -578,7 +578,7 @@ static void StopMediaCodec(decoder_t *p_dec)
     p_sys->api->stop(p_sys->api);
     if (p_dec->fmt_in.i_cat == VIDEO_ES && p_sys->u.video.p_awh)
         AWindowHandler_releaseANativeWindow(p_sys->u.video.p_awh, AWindow_Video,
-                                            false);
+                                            true);
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list