[vlc-commits] mediacodec: assert that we produced the surface

Alexandre Janniaux git at videolan.org
Thu Jan 14 09:41:08 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Jan 13 12:07:30 2021 +0100| [0827c858fcac92526339763b4d928db4160d11e0] | committer: Alexandre Janniaux

mediacodec: assert that we produced the surface

Sanity check.

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

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

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 924c3f15ae..85a7fcf03d 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -683,6 +683,8 @@ CreateVideoContext(decoder_t *p_dec)
             goto error;
         p_sys->video.p_surface = p_sys->video.surfacetexture->window;
         p_sys->video.p_jsurface = p_sys->video.surfacetexture->jsurface;
+        assert(p_sys->video.p_surface);
+        assert(p_sys->video.p_jsurface);
     }
 
     static const struct vlc_video_context_operations ops =



More information about the vlc-commits mailing list