[vlc-commits] vlc-thumb: no need to define seconds in floating points

Steve Lhomme git at videolan.org
Wed Jul 11 15:35:21 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 11 15:20:34 2018 +0200| [cf3a34c32ce54b47debdfd45536f3b8e8d23449a] | committer: Steve Lhomme

vlc-thumb: no need to define seconds in floating points

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf3a34c32ce54b47debdfd45536f3b8e8d23449a
---

 doc/libvlc/vlc-thumb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/libvlc/vlc-thumb.c b/doc/libvlc/vlc-thumb.c
index 8bd45985af..7cb5aaafcc 100644
--- a/doc/libvlc/vlc-thumb.c
+++ b/doc/libvlc/vlc-thumb.c
@@ -140,7 +140,7 @@ static void event_wait(const char *error)
 {
     int ret;
     struct timespec ts;
-#define VLC_THUMBNAIL_TIMEOUT   5.0 /* 5 secs */
+#define VLC_THUMBNAIL_TIMEOUT   5 /* 5 secs */
 
     clock_gettime(CLOCK_MONOTONIC, &ts);
     ts.tv_sec += VLC_THUMBNAIL_TIMEOUT;
@@ -152,7 +152,7 @@ static void event_wait(const char *error)
 
     if (ret) {
         fprintf(stderr,
-                "%s (timeout after %.2f secs!\n", error, VLC_THUMBNAIL_TIMEOUT);
+                "%s (timeout after %d secs!\n", error, VLC_THUMBNAIL_TIMEOUT);
         exit(1);
     }
 }



More information about the vlc-commits mailing list