[vlc-commits] vout: android: set the pf_destroy in the picture_resource_t init

Steve Lhomme git at videolan.org
Tue Aug 18 10:11:09 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 17 17:06:15 2020 +0200| [5d530395cbc1999acc6e1f10942c8abad50b8eaa] | committer: Steve Lhomme

vout: android: set the pf_destroy in the picture_resource_t init

To be similar with all the other calls.

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

 modules/video_output/android/display.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/android/display.c b/modules/video_output/android/display.c
index e412bd75bb..ba7947b762 100644
--- a/modules/video_output/android/display.c
+++ b/modules/video_output/android/display.c
@@ -186,11 +186,10 @@ static picture_t *PictureAlloc(video_format_t *fmt)
         return NULL;
 
     picture_resource_t rsc = {
-        .p_sys = p_picsys
+        .p_sys = p_picsys,
+        .pf_destroy = AndroidPicture_Destroy,
     };
 
-    rsc.pf_destroy = AndroidPicture_Destroy;
-
     p_pic = picture_NewFromResource(fmt, &rsc);
     if (!p_pic)
     {



More information about the vlc-commits mailing list