Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f4ad8d4d
Commit
f4ad8d4d
authored
Jun 19, 2009
by
Hugo Beauzee-Luyssen
Committed by
Rémi Denis-Courmont
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a libvlc_media_add_option_flag
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
d83c47ab
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
11 deletions
+26
-11
bindings/cil/src/libvlc.cs
bindings/cil/src/libvlc.cs
+9
-2
include/vlc/libvlc_media.h
include/vlc/libvlc_media.h
+10
-2
projects/activex/plugin.cpp
projects/activex/plugin.cpp
+1
-1
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.cpp
+1
-1
src/control/media.c
src/control/media.c
+4
-4
src/libvlc.sym
src/libvlc.sym
+1
-1
No files found.
bindings/cil/src/libvlc.cs
View file @
f4ad8d4d
...
...
@@ -34,6 +34,12 @@ namespace VideoLAN.LibVLC
* @brief Native: unmanaged LibVLC APIs
* @ingroup Internals
*/
internal
enum
MediaOptionFlag
{
OptionTrusted
=
0x2
,
OptionUnique
=
0x100
,
};
internal
static
class
LibVLC
{
/* Where is the run-time?
...
...
@@ -101,9 +107,10 @@ namespace VideoLAN.LibVLC
NativeException
ex
);
[
DllImport
(
lib
,
EntryPoint
=
"libvlc_media_add_option_
untrusted
"
)]
EntryPoint
=
"libvlc_media_add_option_
flag
"
)]
public
static
extern
void
MediaAddUntrustedOption
(
MediaHandle
media
,
U8String
options
,
void
MediaAddOptionWithFlag
(
MediaHandle
media
,
U8String
options
,
MediaOptionFlag
flag
,
NativeException
ex
);
[
DllImport
(
lib
,
EntryPoint
=
"libvlc_media_release"
)]
...
...
include/vlc/libvlc_media.h
View file @
f4ad8d4d
...
...
@@ -93,6 +93,12 @@ typedef enum libvlc_state_t
libvlc_Error
}
libvlc_state_t
;
typedef
enum
libvlc_media_option_t
{
libvlc_media_option_trusted
=
0x2
,
libvlc_media_option_unique
=
0x100
}
libvlc_media_option_t
;
/**
* Create a media with the given MRL.
*
...
...
@@ -137,7 +143,7 @@ VLC_PUBLIC_API void libvlc_media_add_option(
const
char
*
ppsz_options
,
libvlc_exception_t
*
p_e
);
/**
* Add an option to the media
from an untrusted source
.
* Add an option to the media
with configurable flags
.
*
* This option will be used to determine how the media_player will
* read the media. This allows to use VLC's advanced
...
...
@@ -147,11 +153,13 @@ VLC_PUBLIC_API void libvlc_media_add_option(
*
* \param p_instance the instance
* \param ppsz_options the options (as a string)
* \param i_flags the flags for this option
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_media_add_option_
untrusted
(
VLC_PUBLIC_API
void
libvlc_media_add_option_
flag
(
libvlc_media_t
*
p_md
,
const
char
*
ppsz_options
,
libvlc_media_option_t
i_flags
,
libvlc_exception_t
*
p_e
);
...
...
projects/activex/plugin.cpp
View file @
f4ad8d4d
...
...
@@ -1069,7 +1069,7 @@ int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const
for
(
int
i
=
0
;
i
<
optc
;
++
i
)
{
libvlc_media_add_option_
untrusted
(
p_m
,
optv
[
i
],
ex
);
libvlc_media_add_option_
flag
(
p_m
,
optv
[
i
],
libvlc_media_option_unique
,
ex
);
if
(
libvlc_exception_raised
(
ex
)
)
{
libvlc_media_release
(
p_m
);
...
...
projects/mozilla/vlcplugin.cpp
View file @
f4ad8d4d
...
...
@@ -322,7 +322,7 @@ int VlcPlugin::playlist_add_extended_untrusted( const char *mrl, const char *nam
for
(
int
i
=
0
;
i
<
optc
;
++
i
)
{
libvlc_media_add_option_
untrusted
(
p_m
,
optv
[
i
],
ex
);
libvlc_media_add_option_
flag
(
p_m
,
optv
[
i
],
libvlc_media_option_unique
,
ex
);
if
(
libvlc_exception_raised
(
ex
)
)
{
libvlc_media_release
(
p_m
);
...
...
src/control/media.c
View file @
f4ad8d4d
...
...
@@ -361,19 +361,19 @@ void libvlc_media_add_option(
}
/**************************************************************************
* Same as libvlc_media_add_option but with
untrusted source
.
* Same as libvlc_media_add_option but with
configurable flags
.
**************************************************************************/
void
libvlc_media_add_option_
untrusted
(
void
libvlc_media_add_option_
flag
(
libvlc_media_t
*
p_md
,
const
char
*
ppsz_option
,
libvlc_media_option_t
i_flags
,
libvlc_exception_t
*
p_e
)
{
VLC_UNUSED
(
p_e
);
input_item_AddOption
(
p_md
->
p_input_item
,
ppsz_option
,
VLC_INPUT_OPTION_UNIQUE
);
i_flags
);
}
/**************************************************************************
* Delete a media descriptor object
**************************************************************************/
...
...
src/libvlc.sym
View file @
f4ad8d4d
...
...
@@ -49,7 +49,7 @@ libvlc_log_iterator_has_next
libvlc_log_iterator_next
libvlc_log_open
libvlc_media_add_option
libvlc_media_add_option_
untrusted
libvlc_media_add_option_
flag
libvlc_media_discoverer_event_manager
libvlc_media_discoverer_is_running
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