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
7cf96573
Commit
7cf96573
authored
Mar 10, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: use playlist preparser for playlist items (fixes #10344)
parent
9781b239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/playlist/item.c
src/playlist/item.c
+12
-12
No files found.
src/playlist/item.c
View file @
7cf96573
...
...
@@ -752,27 +752,27 @@ mtime_t playlist_GetNodeDuration( playlist_item_t* node )
static
void
GoAndPreparse
(
playlist_t
*
p_playlist
,
int
i_mode
,
playlist_item_t
*
p_item
)
{
playlist_private_t
*
sys
=
pl_priv
(
p_playlist
);
PL_ASSERT_LOCKED
;
if
(
(
i_mode
&
PLAYLIST_GO
)
)
{
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
pl_priv
(
p_playlist
)
->
request
.
i_skip
=
0
;
pl_priv
(
p_playlist
)
->
request
.
p_item
=
p_item
;
if
(
pl_priv
(
p_playlist
)
->
p_input
)
input_Stop
(
pl_priv
(
p_playlist
)
->
p_input
,
true
);
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_RUNNING
;
vlc_cond_signal
(
&
pl_priv
(
p_playlist
)
->
signal
);
sys
->
request
.
b_request
=
true
;
sys
->
request
.
i_skip
=
0
;
sys
->
request
.
p_item
=
p_item
;
if
(
sys
->
p_input
!=
NULL
)
input_Stop
(
sys
->
p_input
,
true
);
sys
->
request
.
i_status
=
PLAYLIST_RUNNING
;
vlc_cond_signal
(
&
sys
->
signal
);
}
/* Preparse if no artist/album info, and hasn't been preparsed allready
and if user has some preparsing option (auto-preparse variable)
enabled*/
char
*
psz_artist
=
input_item_GetArtist
(
p_item
->
p_input
);
char
*
psz_album
=
input_item_GetAlbum
(
p_item
->
p_input
);
if
(
pl_priv
(
p_playlist
)
->
b_auto_preparse
&&
input_item_IsPreparsed
(
p_item
->
p_input
)
==
false
&&
(
EMPTY_STR
(
psz_artist
)
||
(
EMPTY_STR
(
psz_album
)
)
)
)
libvlc_MetaRequest
(
p_playlist
->
p_libvlc
,
p_item
->
p_input
);
if
(
sys
->
b_auto_preparse
&&
!
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
);
free
(
psz_album
);
}
...
...
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