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
2893fcef
Commit
2893fcef
authored
Mar 10, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: remove b_auto_preparse
parent
7cf96573
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
src/playlist/engine.c
src/playlist/engine.c
+7
-12
src/playlist/item.c
src/playlist/item.c
+1
-1
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+0
-1
No files found.
src/playlist/engine.c
View file @
2893fcef
...
...
@@ -230,14 +230,6 @@ playlist_t *playlist_Create( vlc_object_t *p_parent )
pl_priv
(
p_playlist
)
->
b_doing_ml
=
false
;
pl_priv
(
p_playlist
)
->
b_auto_preparse
=
var_InheritBool
(
p_parent
,
"auto-preparse"
);
/* Preparser (and meta retriever) */
p
->
p_preparser
=
playlist_preparser_New
(
VLC_OBJECT
(
p_playlist
)
);
if
(
unlikely
(
p
->
p_preparser
==
NULL
)
)
msg_Err
(
p_playlist
,
"cannot create preparser"
);
/* Create the root node */
PL_LOCK
;
p_playlist
->
p_root
=
playlist_NodeCreate
(
p_playlist
,
NULL
,
NULL
,
...
...
@@ -284,11 +276,14 @@ playlist_t *playlist_Create( vlc_object_t *p_parent )
pl_priv
(
p_playlist
)
->
status
.
i_status
=
PLAYLIST_STOPPED
;
if
(
b_ml
)
{
const
bool
b_auto_preparse
=
pl_priv
(
p_playlist
)
->
b_auto_preparse
;
pl_priv
(
p_playlist
)
->
b_auto_preparse
=
false
;
playlist_MLLoad
(
p_playlist
);
pl_priv
(
p_playlist
)
->
b_auto_preparse
=
b_auto_preparse
;
/* Preparser (and meta retriever) _after_ the Media Library*/
if
(
var_InheritBool
(
p_parent
,
"auto-preparse"
)
)
{
p
->
p_preparser
=
playlist_preparser_New
(
VLC_OBJECT
(
p_playlist
)
);
if
(
unlikely
(
p
->
p_preparser
==
NULL
)
)
msg_Err
(
p_playlist
,
"cannot create preparser"
);
}
/* Input resources */
...
...
src/playlist/item.c
View file @
2893fcef
...
...
@@ -770,7 +770,7 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
enabled*/
char
*
psz_artist
=
input_item_GetArtist
(
p_item
->
p_input
);
char
*
psz_album
=
input_item_GetAlbum
(
p_item
->
p_input
);
if
(
sys
->
b_auto_preparse
&&
!
input_item_IsPreparsed
(
p_item
->
p_input
)
if
(
sys
->
p_preparser
!=
NULL
&&
!
input_item_IsPreparsed
(
p_item
->
p_input
)
&&
(
EMPTY_STR
(
psz_artist
)
||
EMPTY_STR
(
psz_album
))
)
playlist_preparser_Push
(
sys
->
p_preparser
,
p_item
->
p_input
);
free
(
psz_artist
);
...
...
src/playlist/playlist_internal.h
View file @
2893fcef
...
...
@@ -90,7 +90,6 @@ typedef struct playlist_private_t
bool
b_tree
;
/**< Display as a tree */
bool
b_doing_ml
;
/**< Doing media library stuff get quicker */
bool
b_auto_preparse
;
}
playlist_private_t
;
#define pl_priv( pl ) ((playlist_private_t *)(pl))
...
...
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