Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
3aafe262
Commit
3aafe262
authored
Mar 12, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/playlist/item-ext.c: playlist_AddExt() needs to duplicate the input options array.
parent
b1ca3eab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
src/playlist/item-ext.c
src/playlist/item-ext.c
+21
-4
No files found.
src/playlist/item-ext.c
View file @
3aafe262
...
...
@@ -2,7 +2,7 @@
* item-ext.c : Playlist item management functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id
: item-ext.c,v 1.14 2004/02/28 17:10:23 gbazin Exp
$
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Clment Stenac <zorglub@videolan.org>
...
...
@@ -55,7 +55,9 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
mtime_t
i_duration
,
const
char
**
ppsz_options
,
int
i_options
)
{
playlist_item_t
*
p_item
=
playlist_ItemNew
(
p_playlist
,
psz_uri
,
psz_name
);
playlist_item_t
*
p_item
=
playlist_ItemNew
(
p_playlist
,
psz_uri
,
psz_name
);
int
i
;
if
(
p_item
==
NULL
)
{
...
...
@@ -64,8 +66,23 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
}
p_item
->
i_duration
=
i_duration
;
p_item
->
ppsz_options
=
(
char
**
)
ppsz_options
;
p_item
->
i_options
=
i_options
;
p_item
->
i_options
=
i_options
;
p_item
->
ppsz_options
=
NULL
;
for
(
i
=
0
;
i
<
i_options
;
i
++
)
{
if
(
i
==
0
)
{
p_item
->
ppsz_options
=
malloc
(
i_options
*
sizeof
(
char
*
)
);
if
(
!
p_item
->
ppsz_options
)
{
p_item
->
i_options
=
0
;
break
;
}
}
p_item
->
ppsz_options
[
i
]
=
strdup
(
ppsz_options
[
i
]
);
}
return
playlist_AddItem
(
p_playlist
,
p_item
,
i_mode
,
i_pos
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment