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
918d0086
Commit
918d0086
authored
Feb 04, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add libvlc_media_add_option_untrusted()
Based on
059a3399
by Laurent Aimar
parent
dc12c9b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+18
-0
src/control/media.c
src/control/media.c
+14
-0
src/libvlc.sym
src/libvlc.sym
+1
-0
No files found.
include/vlc/libvlc.h
View file @
918d0086
...
@@ -265,6 +265,24 @@ VLC_PUBLIC_API void libvlc_media_add_option(
...
@@ -265,6 +265,24 @@ VLC_PUBLIC_API void libvlc_media_add_option(
libvlc_media_t
*
p_md
,
libvlc_media_t
*
p_md
,
const
char
*
ppsz_options
,
const
char
*
ppsz_options
,
libvlc_exception_t
*
p_e
);
libvlc_exception_t
*
p_e
);
/**
* Add an option to the media from an untrusted source.
*
* This option will be used to determine how the media_player will
* read the media. This allows to use VLC's advanced
* reading/streaming options on a per-media basis.
*
* The options are detailed in vlc --long-help, for instance "--sout-all"
*
* \param p_instance the instance
* \param ppsz_options the options (as a string)
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_media_add_option_untrusted
(
libvlc_media_t
*
p_md
,
const
char
*
ppsz_options
,
libvlc_exception_t
*
p_e
);
/**
/**
* Retain a reference to a media descriptor object (libvlc_media_t). Use
* Retain a reference to a media descriptor object (libvlc_media_t). Use
...
...
src/control/media.c
View file @
918d0086
...
@@ -350,6 +350,20 @@ void libvlc_media_add_option(
...
@@ -350,6 +350,20 @@ void libvlc_media_add_option(
VLC_INPUT_OPTION_UNIQUE
|
VLC_INPUT_OPTION_TRUSTED
);
VLC_INPUT_OPTION_UNIQUE
|
VLC_INPUT_OPTION_TRUSTED
);
}
}
/**************************************************************************
* Same as libvlc_media_add_option but with untrusted source.
**************************************************************************/
void
libvlc_media_add_option_untrusted
(
libvlc_media_t
*
p_md
,
const
char
*
ppsz_option
,
libvlc_exception_t
*
p_e
)
{
VLC_UNUSED
(
p_e
);
input_item_AddOpt
(
p_md
->
p_input_item
,
ppsz_option
,
VLC_INPUT_OPTION_UNIQUE
);
}
/**************************************************************************
/**************************************************************************
* Delete a media descriptor object
* Delete a media descriptor object
**************************************************************************/
**************************************************************************/
...
...
src/libvlc.sym
View file @
918d0086
...
@@ -37,6 +37,7 @@ libvlc_log_iterator_has_next
...
@@ -37,6 +37,7 @@ libvlc_log_iterator_has_next
libvlc_log_iterator_next
libvlc_log_iterator_next
libvlc_log_open
libvlc_log_open
libvlc_media_add_option
libvlc_media_add_option
libvlc_media_add_option_untrusted
libvlc_media_discoverer_event_manager
libvlc_media_discoverer_event_manager
libvlc_media_discoverer_is_running
libvlc_media_discoverer_is_running
libvlc_media_discoverer_localized_name
libvlc_media_discoverer_localized_name
...
...
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