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
902514db
Commit
902514db
authored
Feb 03, 2016
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: add a libvlc_media_parse_flag_t to interact with the user
parent
fb7313e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
include/vlc/libvlc_media.h
include/vlc/libvlc_media.h
+6
-0
lib/media.c
lib/media.c
+2
-0
No files found.
include/vlc/libvlc_media.h
View file @
902514db
...
...
@@ -265,6 +265,12 @@ typedef enum libvlc_media_parse_flag_t
* Fetch meta and covert art using network resources
*/
libvlc_media_fetch_network
=
0x04
,
/**
* Interact with the user (via libvlc_dialog_cbs) when preparsing this item
* (and not its sub items). Set this flag in order to receive a callback
* when the input is asking for credentials.
*/
libvlc_media_do_interact
=
0x08
,
}
libvlc_media_parse_flag_t
;
/**
...
...
lib/media.c
View file @
902514db
...
...
@@ -741,6 +741,8 @@ static int media_parse(libvlc_media_t *media, bool b_async,
if
(
parse_flag
&
libvlc_media_parse_network
)
parse_scope
|=
META_REQUEST_OPTION_SCOPE_NETWORK
;
if
(
parse_flag
&
libvlc_media_do_interact
)
parse_scope
|=
META_REQUEST_OPTION_DO_INTERACT
;
ret
=
libvlc_MetaRequest
(
libvlc
,
item
,
parse_scope
);
if
(
ret
!=
VLC_SUCCESS
)
return
ret
;
...
...
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