[vlc-devel] [PATCH] demux:playlist: simplify the new item creation
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jun 20 09:00:18 CEST 2018
The duration is always -1
---
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;
--
2.17.0
More information about the vlc-devel
mailing list