[vlc-commits] amem: i_nb_samples is unsigned, no need for size_t

Rémi Denis-Courmont git at videolan.org
Tue May 10 22:02:09 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 10 23:01:47 2011 +0300| [0b90ef31d707de103ad5975b27fbda3168685642] | committer: Rémi Denis-Courmont

amem: i_nb_samples is unsigned, no need for size_t

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

 include/vlc/libvlc_media_player.h |    4 +---
 modules/audio_output/amem.c       |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index f89a859..ad86676 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -31,8 +31,6 @@
 #ifndef VLC_LIBVLC_MEDIA_PLAYER_H
 #define VLC_LIBVLC_MEDIA_PLAYER_H 1
 
-# include <stddef.h>
-
 # ifdef __cplusplus
 extern "C" {
 # else
@@ -473,7 +471,7 @@ LIBVLC_API void *libvlc_media_player_get_hwnd ( libvlc_media_player_t *p_mi );
  * \param pts expected play time stamp (see libvlc_delay())
  */
 typedef void (*libvlc_audio_play_cb)(void *data, const void *samples,
-                                     size_t count, int64_t pts);
+                                     unsigned count, int64_t pts);
 
 /**
  * Callback prototype for audio volume change.
diff --git a/modules/audio_output/amem.c b/modules/audio_output/amem.c
index 7e5122c..c52c07d 100644
--- a/modules/audio_output/amem.c
+++ b/modules/audio_output/amem.c
@@ -54,7 +54,7 @@ vlc_module_end ()
 struct aout_sys_t
 {
     void *opaque;
-    void (*play) (void *opaque, const void *data, size_t count, int64_t pts);
+    void (*play) (void *opaque, const void *data, unsigned count, int64_t pts);
     int (*set_volume) (void *opaque, float vol, bool mute);
     void (*cleanup) (void *opaque);
 };



More information about the vlc-commits mailing list