[vlc-commits] display: reroute and deprecate close event
Rémi Denis-Courmont
git at videolan.org
Sun May 20 19:52:13 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:47:51 2018 +0300| [e0e010a8d6e4d1ded56870d29566f92424472268] | committer: Rémi Denis-Courmont
display: reroute and deprecate close event
In general, the window provider must be involved in the windowing
system closing protocol, so sending the event from the display is not
very sane.
(Note however that the event currently does nothing either way.)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0e010a8d6e4d1ded56870d29566f92424472268
---
include/vlc_vout_display.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index afb4677635..f2dde1b964 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -320,9 +320,11 @@ static inline void vout_display_SendEventPicturesInvalid(vout_display_t *vd)
{
vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_PICTURES_INVALID);
}
+
+VLC_DEPRECATED /* Use vout_window_ReportClose() in window provider instead. */
static inline void vout_display_SendEventClose(vout_display_t *vd)
{
- vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_CLOSE);
+ vout_window_ReportClose(vd->cfg->window);
}
#if defined(_WIN32) || defined(__OS2__)
More information about the vlc-commits
mailing list