[vlc-commits] mmal:vout: use the output format directly to create pictures

Steve Lhomme git at videolan.org
Mon Aug 27 17:14:03 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 27 13:17:48 2018 +0200| [195b27ef949d6c60f258bf0259e050863f9437d8] | committer: Steve Lhomme

mmal:vout: use the output format directly to create pictures

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

 modules/hw/mmal/vout.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index ce0682b481..03b4a6d34a 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -449,7 +449,6 @@ static picture_pool_t *vd_pool(vout_display_t *vd, unsigned count)
     vout_display_sys_t *sys = vd->sys;
     picture_resource_t picture_res;
     picture_pool_configuration_t picture_pool_cfg;
-    video_format_t fmt = vd->fmt;
     MMAL_STATUS_T status;
     unsigned i;
 
@@ -516,7 +515,7 @@ static picture_pool_t *vd_pool(vout_display_t *vd, unsigned count)
         picture_res.p_sys->owner = (vlc_object_t *)vd;
         picture_res.p_sys->buffer = mmal_queue_get(sys->pool->queue);
 
-        sys->pictures[i] = picture_NewFromResource(&fmt, &picture_res);
+        sys->pictures[i] = picture_NewFromResource(&vd->fmt, &picture_res);
         if (!sys->pictures[i]) {
             msg_Err(vd, "Failed to create picture");
             free(picture_res.p_sys);



More information about the vlc-commits mailing list