[vlc-commits] input: use unsigned atomic value

Rémi Denis-Courmont git at videolan.org
Thu Aug 23 20:05:17 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 23 21:00:58 2012 +0300| [f89dc87db3018dcb33e56f65f495ea40b0af1bf7] | committer: Rémi Denis-Courmont

input: use unsigned atomic value

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

 src/input/item.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/item.c b/src/input/item.c
index d1e4abf..962d01c 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -812,7 +812,7 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
                         int i_options, const char *const *ppsz_options,
                         unsigned flags, mtime_t duration, int type )
 {
-    static atomic_int last_input_id = ATOMIC_VAR_INIT(0);
+    static atomic_uint last_input_id = ATOMIC_VAR_INIT(0);
 
     input_item_owner_t *owner = calloc( 1, sizeof( *owner ) );
     if( unlikely(owner == NULL) )



More information about the vlc-commits mailing list