[vlc-devel] [PATCH 10/11] mediacodec: release picture from InvalidateAllPictures
Thomas Guillem
thomas at gllm.fr
Wed Aug 26 18:10:07 CEST 2015
---
modules/codec/omxil/mediacodec.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 1cb210a..bed8225 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -720,7 +720,11 @@ static void InvalidateAllPictures(decoder_t *p_dec)
for (unsigned int i = 0; i < p_sys->u.video.i_inflight_pictures; ++i) {
picture_t *p_pic = p_sys->u.video.pp_inflight_pictures[i];
if (p_pic) {
- p_pic->p_sys->priv.hw.b_valid = false;
+ if (p_pic->p_sys->priv.hw.b_valid)
+ {
+ p_sys->api->release_out(p_sys->api, p_pic->p_sys->priv.hw.i_index, false);
+ p_pic->p_sys->priv.hw.b_valid = false;
+ }
p_sys->u.video.pp_inflight_pictures[i] = NULL;
}
}
--
2.1.4
More information about the vlc-devel
mailing list