X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess_filter%2Fbandwidth.c;h=cb786772e3f68e02129904d26b5ccedf7f4b0ead;hb=4168ec3729c16ddc3cce5dcb2a69306e45ec0cb7;hp=7553c0e9d7411940be48e419ca27ac7b15a7e894;hpb=6b822f38be4f5958b1e271324bc73f4a7a98b0bc;p=vlc diff --git a/modules/access_filter/bandwidth.c b/modules/access_filter/bandwidth.c index 7553c0e9d7..cb786772e3 100644 --- a/modules/access_filter/bandwidth.c +++ b/modules/access_filter/bandwidth.c @@ -2,7 +2,7 @@ * bandwidth.c ***************************************************************************** * Copyright © 2007 Rémi Denis-Courmont - * $Id: dump.c 19948 2007-04-26 19:53:53Z courmisch $ + * $Id$ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include #include #include @@ -37,8 +42,8 @@ static void Close (vlc_object_t *); /* TODO: burst support */ vlc_module_begin (); - set_shortname (_("Bandwidth")); - set_description (_("Bandwidth limiter")); + set_shortname (N_("Bandwidth")); + set_description (N_("Bandwidth limiter")); set_category (CAT_INPUT); set_subcategory (SUBCAT_INPUT_ACCESS_FILTER); set_capability ("access_filter", 0); @@ -46,7 +51,7 @@ vlc_module_begin (); set_callbacks (Open, Close); add_integer ("access-bandwidth", 65536, NULL, BANDWIDTH_TEXT, - BANDWIDTH_LONGTEXT, VLC_FALSE); + BANDWIDTH_LONGTEXT, false); vlc_module_end(); static ssize_t Read (access_t *access, uint8_t *buffer, size_t len); @@ -139,7 +144,7 @@ retry: if (len > delta) { - msg_Dbg (access, "reading %u bytes instead of %u", (unsigned)delta, + msg_Dbg (access, "reading %"PRIu64" bytes instead of %zu", delta, len); len = (int)delta; } @@ -149,7 +154,7 @@ retry: len = src->pf_read (src, buffer, len); access->info = src->info; - msg_Dbg (access, "read %u bytes", len); + msg_Dbg (access, "read %zu bytes", len); return len; }