[vlc-commits] display: simplify vd->info initialization

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 19:43:06 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:34:20 2018 +0200| [1d22b4d29932b1e5562ed377760d419955f95ca2] | committer: Rémi Denis-Courmont

display: simplify vd->info initialization

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

 src/video_output/display.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 0c0a566eed..94962893ed 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -103,12 +103,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
     video_format_Copy(&vd->source, fmt);
 
     /* Picture buffer does not have the concept of aspect ratio */
-
-    vd->info.is_slow = false;
-    vd->info.has_double_click = false;
-    vd->info.has_pictures_invalid = false;
-    vd->info.subpicture_chromas = NULL;
-
+    vd->info = (vout_display_info_t){ };
     vd->cfg = cfg;
     vd->pool = NULL;
     vd->prepare = NULL;



More information about the vlc-commits mailing list