[vlc-commits] mmal: vout: report the rendering size
Steve Lhomme
git at videolan.org
Tue Aug 25 15:33:23 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 25 15:08:41 2020 +0200| [fbb54457118b61f56f4d2c12c5e7a170c04ea48d] | committer: Steve Lhomme
mmal: vout: report the rendering size
Only called on open and when it changes.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fbb54457118b61f56f4d2c12c5e7a170c04ea48d
---
modules/hw/mmal/vout.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index e59fbbd223..e0eeeb0513 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -485,10 +485,12 @@ static int query_resolution(vout_display_t *vd, const int display_id, unsigned *
msg_Dbg(vd, "HDMI: %dx%d", display_state.display.hdmi.width, display_state.display.hdmi.height);
*width = display_state.display.hdmi.width;
*height = display_state.display.hdmi.height;
+ vout_display_SetSize(vd, *width, *height);
} else if (display_state.state & 0xFF00) {
msg_Dbg(vd, "SDTV: %dx%d", display_state.display.sdtv.width, display_state.display.sdtv.height);
*width = display_state.display.sdtv.width;
*height = display_state.display.sdtv.height;
+ vout_display_SetSize(vd, *width, *height);
} else {
msg_Warn(vd, "Invalid display state %"PRIx32, display_state.state);
ret = -1;
More information about the vlc-commits
mailing list