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
63efe9cc
Commit
63efe9cc
authored
Feb 03, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: fix preparsing (atleast fixed it for me)
parent
ffce10f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/playlist/item.c
src/playlist/item.c
+4
-4
No files found.
src/playlist/item.c
View file @
63efe9cc
...
@@ -445,6 +445,8 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
...
@@ -445,6 +445,8 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
if
(
p_item
==
NULL
)
return
NULL
;
if
(
p_item
==
NULL
)
return
NULL
;
AddItem
(
p_playlist
,
p_item
,
p_parent
,
i_mode
,
i_pos
);
AddItem
(
p_playlist
,
p_item
,
p_parent
,
i_mode
,
i_pos
);
GoAndPreparse
(
p_playlist
,
i_mode
,
p_item
);
PL_UNLOCK_IF
(
!
b_locked
);
PL_UNLOCK_IF
(
!
b_locked
);
return
p_item
;
return
p_item
;
...
@@ -715,14 +717,12 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
...
@@ -715,14 +717,12 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_RUNNING
;
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_RUNNING
;
vlc_cond_signal
(
&
pl_priv
(
p_playlist
)
->
signal
);
vlc_cond_signal
(
&
pl_priv
(
p_playlist
)
->
signal
);
}
}
/* Preparse if
PREPARSE or SPREPARSE &
not enough meta */
/* Preparse if not enough meta */
char
*
psz_artist
=
input_item_GetArtist
(
p_item
->
p_input
);
char
*
psz_artist
=
input_item_GetArtist
(
p_item
->
p_input
);
char
*
psz_album
=
input_item_GetAlbum
(
p_item
->
p_input
);
char
*
psz_album
=
input_item_GetAlbum
(
p_item
->
p_input
);
if
(
pl_priv
(
p_playlist
)
->
b_auto_preparse
&&
if
(
pl_priv
(
p_playlist
)
->
b_auto_preparse
&&
(
i_mode
&
PLAYLIST_PREPARSE
||
(
i_mode
&
PLAYLIST_SPREPARSE
&&
(
EMPTY_STR
(
psz_artist
)
||
(
EMPTY_STR
(
psz_album
)
)
)
(
EMPTY_STR
(
psz_artist
)
||
(
EMPTY_STR
(
psz_album
)
)
)
)
)
)
)
playlist_PreparseEnqueue
(
p_playlist
,
p_item
->
p_input
,
pl_Locked
);
playlist_PreparseEnqueue
(
p_playlist
,
p_item
->
p_input
,
pl_Locked
);
/* If we already have it, signal it */
/* If we already have it, signal it */
else
if
(
!
EMPTY_STR
(
psz_artist
)
&&
!
EMPTY_STR
(
psz_album
)
)
else
if
(
!
EMPTY_STR
(
psz_artist
)
&&
!
EMPTY_STR
(
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