Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d83a30d6
Commit
d83a30d6
authored
Jan 21, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an "auto-preparse" option (default TRUE) - Refs:#192
parent
f9c3744e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/libvlc.h
src/libvlc.h
+7
-0
src/playlist/item-ext.c
src/playlist/item-ext.c
+4
-2
No files found.
src/libvlc.h
View file @
d83a30d6
...
...
@@ -687,6 +687,11 @@ static char *ppsz_clock_descriptions[] =
"These options define the behavior of the playlist. Some " \
"of them can be overridden in the playlist dialog box." )
#define PREPARSE_TEXT N_( "Automatically preparse files")
#define PREPARSE_LONGTEXT N_( \
"This option enables automatic preparsing of files added to the playlist " \
"(to retrieve some metadata)." )
#define SD_TEXT N_( "Services discovery modules")
#define SD_LONGTEXT N_( \
"Specifies the services discovery modules to load, separated by " \
...
...
@@ -1384,6 +1389,8 @@ vlc_module_begin();
add_string
(
"open"
,
""
,
NULL
,
OPEN_TEXT
,
OPEN_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"auto-preparse"
,
VLC_TRUE
,
NULL
,
PREPARSE_TEXT
,
PREPARSE_LONGTEXT
,
VLC_FALSE
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
add_module_list_cat
(
"services-discovery"
,
SUBCAT_PLAYLIST_SD
,
NULL
,
NULL
,
SD_TEXT
,
SD_LONGTEXT
,
VLC_FALSE
);
...
...
src/playlist/item-ext.c
View file @
d83a30d6
...
...
@@ -243,7 +243,8 @@ int playlist_AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
p_playlist
->
status
.
i_status
=
PLAYLIST_RUNNING
;
}
if
(
i_mode
&
PLAYLIST_PREPARSE
)
if
(
i_mode
&
PLAYLIST_PREPARSE
&&
var_CreateGetBool
(
p_playlist
,
"auto-preparse"
)
)
{
playlist_PreparseEnqueue
(
p_playlist
,
&
p_item
->
input
);
}
...
...
@@ -368,7 +369,8 @@ int playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
}
p_playlist
->
status
.
i_status
=
PLAYLIST_RUNNING
;
}
if
(
i_mode
&
PLAYLIST_PREPARSE
)
if
(
i_mode
&
PLAYLIST_PREPARSE
&&
var_CreateGetBool
(
p_playlist
,
"auto-preparse"
)
)
{
playlist_PreparseEnqueue
(
p_playlist
,
&
p_item
->
input
);
}
...
...
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