Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f77b039a
Commit
f77b039a
authored
Feb 04, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add libvlc_playlist_add_extended_untrusted()
Based on
059a3399
by Laurent Aimar
parent
4409e905
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
8 deletions
+43
-8
include/vlc/deprecated.h
include/vlc/deprecated.h
+16
-0
src/control/playlist.c
src/control/playlist.c
+26
-8
src/libvlc.sym
src/libvlc.sym
+1
-0
No files found.
include/vlc/deprecated.h
View file @
f77b039a
...
@@ -215,6 +215,22 @@ VLC_DEPRECATED_API int libvlc_playlist_add_extended( libvlc_instance_t *, const
...
@@ -215,6 +215,22 @@ VLC_DEPRECATED_API int libvlc_playlist_add_extended( libvlc_instance_t *, const
const
char
*
,
int
,
const
char
**
,
const
char
*
,
int
,
const
char
**
,
libvlc_exception_t
*
);
libvlc_exception_t
*
);
/**
* Append an item to the playlist. The item is added at the end, with
* additional input options from an untrusted source.
*
* \param p_instance the playlist instance
* \param psz_uri the URI to open, using VLC format
* \param psz_name a name that you might want to give or NULL
* \param i_options the number of options to add
* \param ppsz_options strings representing the options to add
* \param p_e an initialized exception pointer
* \return the identifier of the new item
*/
VLC_DEPRECATED_API
int
libvlc_playlist_add_extended_untrusted
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
**
,
libvlc_exception_t
*
);
/**
/**
* Delete the playlist item with the given ID.
* Delete the playlist item with the given ID.
*
*
...
...
src/control/playlist.c
View file @
f77b039a
...
@@ -158,10 +158,11 @@ int libvlc_playlist_add( libvlc_instance_t *p_instance, const char *psz_uri,
...
@@ -158,10 +158,11 @@ int libvlc_playlist_add( libvlc_instance_t *p_instance, const char *psz_uri,
0
,
NULL
,
p_e
);
0
,
NULL
,
p_e
);
}
}
int
libvlc_playlist_add_extended
(
libvlc_instance_t
*
p_instance
,
static
int
PlaylistAddExtended
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_options
,
const
char
**
ppsz_options
,
int
i_options
,
const
char
**
ppsz_options
,
libvlc_exception_t
*
p_e
)
unsigned
i_option_flags
,
libvlc_exception_t
*
p_e
)
{
{
assert
(
PL
);
assert
(
PL
);
if
(
playlist_was_locked
(
p_instance
)
)
if
(
playlist_was_locked
(
p_instance
)
)
...
@@ -170,11 +171,28 @@ int libvlc_playlist_add_extended( libvlc_instance_t *p_instance,
...
@@ -170,11 +171,28 @@ int libvlc_playlist_add_extended( libvlc_instance_t *p_instance,
"calling libvlc_playlist_add"
);
"calling libvlc_playlist_add"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
return
playlist_AddExt
(
PL
,
psz_uri
,
psz_name
,
return
playlist_AddExtOpt
(
PL
,
psz_uri
,
psz_name
,
PLAYLIST_INSERT
,
PLAYLIST_INSERT
,
PLAYLIST_END
,
-
1
,
ppsz_options
,
PLAYLIST_END
,
-
1
,
ppsz_options
,
i_options
,
i_options
,
1
,
pl_Unlocked
);
i_option_flags
,
true
,
pl_Unlocked
);
}
int
libvlc_playlist_add_extended
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_options
,
const
char
**
ppsz_options
,
libvlc_exception_t
*
p_e
)
{
return
PlaylistAddExtended
(
p_instance
,
psz_uri
,
psz_name
,
i_options
,
ppsz_options
,
VLC_INPUT_OPTION_TRUSTED
,
p_e
);
}
int
libvlc_playlist_add_extended_untrusted
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_options
,
const
char
**
ppsz_options
,
libvlc_exception_t
*
p_e
)
{
return
PlaylistAddExtended
(
p_instance
,
psz_uri
,
psz_name
,
i_options
,
ppsz_options
,
0
,
p_e
);
}
}
int
libvlc_playlist_delete_item
(
libvlc_instance_t
*
p_instance
,
int
i_id
,
int
libvlc_playlist_delete_item
(
libvlc_instance_t
*
p_instance
,
int
i_id
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
...
...
src/libvlc.sym
View file @
f77b039a
...
@@ -144,6 +144,7 @@ libvlc_media_subitems
...
@@ -144,6 +144,7 @@ libvlc_media_subitems
libvlc_new
libvlc_new
libvlc_playlist_add
libvlc_playlist_add
libvlc_playlist_add_extended
libvlc_playlist_add_extended
libvlc_playlist_add_extended_untrusted
libvlc_playlist_clear
libvlc_playlist_clear
libvlc_playlist_delete_item
libvlc_playlist_delete_item
libvlc_playlist_get_media_player
libvlc_playlist_get_media_player
...
...
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