]> git.sesse.net Git - vlc/blobdiff - modules/access_filter/bandwidth.c
threads: Make sure we don't re-create a thread if the object has already one.
[vlc] / modules / access_filter / bandwidth.c
index ba0bc19e596ae98b42206d7d9b178119d14d4bea..cb786772e3f68e02129904d26b5ccedf7f4b0ead 100644 (file)
@@ -23,7 +23,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 
 #include <assert.h>
@@ -42,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);
@@ -144,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;
     }
@@ -154,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;
 }