[vlc-commits] vout: pass cfg and fmt to VOUT_DISPLAY_RESET_PICTURES
Thomas Guillem
git at videolan.org
Tue Nov 27 15:49:09 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Oct 28 15:50:56 2018 +0100| [f352f22bdd1839319fd70a0b2a5facdd4eab7ab1] | committer: Steve Lhomme
vout: pass cfg and fmt to VOUT_DISPLAY_RESET_PICTURES
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f352f22bdd1839319fd70a0b2a5facdd4eab7ab1
---
include/vlc_vout_display.h | 2 +-
src/video_output/display.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 95483f6d79..cb96629d75 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -123,7 +123,7 @@ enum {
/* Ask to reset the internal buffers after a VOUT_DISPLAY_EVENT_PICTURES_INVALID
* request.
*/
- VOUT_DISPLAY_RESET_PICTURES,
+ VOUT_DISPLAY_RESET_PICTURES, /* const vout_display_cfg_t *, es_format_t * */
#if defined(_WIN32) || defined(__OS2__)
/* Ask the module to acknowledge/refuse the fullscreen state change after
diff --git a/src/video_output/display.c b/src/video_output/display.c
index d6220c2fef..021e232c2b 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -738,7 +738,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
if (allow_reset_pictures
&& atomic_exchange(&osys->reset_pictures, false)) {
- if (vout_display_Control(vd, VOUT_DISPLAY_RESET_PICTURES)) {
+ if (vout_display_Control(vd, VOUT_DISPLAY_RESET_PICTURES, &osys->cfg,
+ &vd->fmt)) {
/* FIXME what to do here ? */
msg_Err(vd, "Failed to reset pictures (probably fatal)");
}
More information about the vlc-commits
mailing list