Fixed input_ItemNewExt* prototype (mtime_t for duration, close #1205)
authorLaurent Aimar <fenrir@videolan.org>
Fri, 25 May 2007 19:21:10 +0000 (19:21 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 25 May 2007 19:21:10 +0000 (19:21 +0000)
include/vlc_input.h
src/input/item.c

index acd42a6..92057ab 100644 (file)
@@ -190,8 +190,8 @@ VLC_EXPORT(int, input_ItemAddInfo, ( input_item_t *p_i, const char *psz_cat, con
 
 #define input_ItemNew( a,b,c ) input_ItemNewExt( a, b, c, 0, NULL, -1 )
 #define input_ItemNewExt(a,b,c,d,e,f) __input_ItemNewExt( VLC_OBJECT(a),b,c,d,e,f)
-VLC_EXPORT( input_item_t *, __input_ItemNewExt, (vlc_object_t *, const char *, const char*, int, const char *const *, int)  );
-VLC_EXPORT( input_item_t *, input_ItemNewWithType, ( vlc_object_t *, const char *, const char *e, int, const char *const *, int, int ) );
+VLC_EXPORT( input_item_t *, __input_ItemNewExt, (vlc_object_t *, const char *, const char*, int, const char *const *, mtime_t i_duration )  );
+VLC_EXPORT( input_item_t *, input_ItemNewWithType, ( vlc_object_t *, const char *, const char *e, int, const char *const *, mtime_t i_duration, int ) );
 
 VLC_EXPORT( input_item_t *, input_ItemGetById, (playlist_t *, int ) );
 
index 4e34b06..d860aff 100644 (file)
@@ -199,8 +199,10 @@ input_item_t *input_ItemGetById( playlist_t *p_playlist, int i_id )
 }
 
 input_item_t *__input_ItemNewExt( vlc_object_t *p_obj, const char *psz_uri,
-                                  const char *psz_name, int i_options,
-                                  const char *const *ppsz_options, int i_duration )
+                                  const char *psz_name,
+                                  int i_options,
+                                  const char *const *ppsz_options,
+                                  mtime_t i_duration )
 {
     return input_ItemNewWithType( p_obj, psz_uri, psz_name,
                                   i_options, ppsz_options,
@@ -209,8 +211,10 @@ input_item_t *__input_ItemNewExt( vlc_object_t *p_obj, const char *psz_uri,
 
 
 input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
-                                const char *psz_name, int i_options,
-                                const char *const *ppsz_options, int i_duration,
+                                const char *psz_name,
+                                int i_options,
+                                const char *const *ppsz_options,
+                                mtime_t i_duration,
                                 int i_type )
 {
     playlist_t *p_playlist = pl_Yield( p_obj );