vlc | branch: master | Steve Lhomme <[email protected]> | Mon Jun 18 09:52:05 2018 +0200| [d2c3355d2fb282aeab070a2a383da8bb0b783bbd] | committer: Steve Lhomme
demux:playlist: simplify the new item creation The duration is always -1 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2c3355d2fb282aeab070a2a383da8bb0b783bbd --- modules/demux/playlist/ram.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/demux/playlist/ram.c b/modules/demux/playlist/ram.c index 1204d3f3ba..966601ec1a 100644 --- a/modules/demux/playlist/ram.c +++ b/modules/demux/playlist/ram.c @@ -202,7 +202,6 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems ) char *psz_line; char *psz_artist = NULL, *psz_album = NULL, *psz_genre = NULL, *psz_year = NULL; char *psz_author = NULL, *psz_title = NULL, *psz_copyright = NULL, *psz_cdnum = NULL, *psz_comments = NULL; - mtime_t i_duration = -1; const char **ppsz_options = NULL; int i_options = 0, i_start = 0, i_stop = 0; bool b_cleanup = false; @@ -318,8 +317,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems ) } /* Create the input item and pump in all the options into playlist item */ - p_input = input_item_NewExt( psz_mrl, psz_title, i_duration, - ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN ); + p_input = input_item_New( psz_mrl, psz_title ); if( !p_input ) { free( psz_mrl ); @@ -364,7 +362,6 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems ) FREENULL( psz_cdnum ); FREENULL( psz_comments ); i_options = 0; - i_duration = -1; i_start = 0; i_stop = 0; b_cleanup = false; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
