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

Steve Lhomme git at videolan.org
Tue Aug 18 08:34:22 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 17 17:06:15 2020 +0200| [653ad039bd208a23d22413af5386bff2136ec925] | 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=653ad039bd208a23d22413af5386bff2136ec925
---

 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..c4f375f365 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