[vlc-devel] [PATCH 17/17] display: use osys->display_fmt directly
Alexandre Janniaux
ajanni at videolabs.io
Mon Apr 12 13:32:33 UTC 2021
vd->fmt is a pointer for osys->display_fmt designed to be in the vout
display public interface. Instead, consistently use osys->display_fmt
which already is the pointed value.
---
src/video_output/display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index ff665d2af5..5138b36218 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -323,7 +323,7 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
v_src.i_sar_num = 0;
v_src.i_sar_den = 0;
- video_format_t v_dst = *vd->fmt;
+ video_format_t v_dst = osys->display_fmt;
v_dst.i_sar_num = 0;
v_dst.i_sar_den = 0;
--
2.31.1
More information about the vlc-devel
mailing list