[vlc-commits] caca: use a define for the unset deadline
Steve Lhomme
git at videolan.org
Tue Sep 18 16:42:38 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 09:00:56 2018 +0200| [4874a6ba0fe82454e974c7c546b7df7f43e7da6e] | committer: Steve Lhomme
caca: use a define for the unset deadline
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4874a6ba0fe82454e974c7c546b7df7f43e7da6e
---
modules/video_output/caca.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c
index cd55041c7d..dc1a06d6ba 100644
--- a/modules/video_output/caca.c
+++ b/modules/video_output/caca.c
@@ -295,6 +295,8 @@ static const struct {
{ -1, -1 }
};
+#define INVALID_DEADLINE INT64_MAX
+
/**
* Proccess pending event
*/
@@ -302,9 +304,9 @@ static void Manage(vout_display_t *vd)
{
vout_display_sys_t *sys = vd->sys;
- if (sys->cursor_deadline != INT64_MAX && sys->cursor_deadline < vlc_tick_now()) {
+ if (sys->cursor_deadline != INVALID_DEADLINE && sys->cursor_deadline < vlc_tick_now()) {
caca_set_mouse(sys->dp, 0);
- sys->cursor_deadline = INT64_MAX;
+ sys->cursor_deadline = INVALID_DEADLINE;
}
struct caca_event ev;
@@ -471,7 +473,7 @@ static int Open(vlc_object_t *object)
}
sys->cursor_timeout = VLC_TICK_FROM_MS( var_InheritInteger(vd, "mouse-hide-timeout") );
- sys->cursor_deadline = INT64_MAX;
+ sys->cursor_deadline = INVALID_DEADLINE;
/* Fix format */
video_format_t fmt = vd->fmt;
More information about the vlc-commits
mailing list