[vlc-commits] video_output: only reset the mouse_event if it was set on display release
Steve Lhomme
git at videolan.org
Tue Aug 25 07:16:06 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 18 13:32:59 2020 +0200| [8a9f7eccd1490fa4bd50482b0343976e9ce10219] | committer: Steve Lhomme
video_output: only reset the mouse_event if it was set on display release
We already have the "if" so make use of it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a9f7eccd1490fa4bd50482b0343976e9ce10219
---
src/video_output/video_output.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index cf6cd92d57..4f48754cf2 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1914,11 +1914,13 @@ static void vout_ReleaseDisplay(vout_thread_sys_t *vout)
assert(sys->private.display_pool == NULL);
if (sys->mouse_event)
+ {
sys->mouse_event(NULL, sys->mouse_opaque);
+ sys->mouse_event = NULL;
+ }
if (sys->spu)
spu_Detach(sys->spu);
- sys->mouse_event = NULL;
sys->clock = NULL;
video_format_Clean(&sys->original);
}
More information about the vlc-commits
mailing list