[vlc-devel] commit: playlist: fix preparsing (atleast fixed it for me) (Ilkka Ollakka )
git version control
git at videolan.org
Wed Feb 3 16:09:30 CET 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Feb 3 17:07:39 2010 +0200| [63efe9cc468e56e808094223362bafbf36af03df] | committer: Ilkka Ollakka
playlist: fix preparsing (atleast fixed it for me)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63efe9cc468e56e808094223362bafbf36af03df
---
src/playlist/item.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 17cacc1..e0dc3d5 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -445,6 +445,8 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
if( p_item == NULL ) return NULL;
AddItem( p_playlist, p_item, p_parent, i_mode, i_pos );
+ GoAndPreparse( p_playlist, i_mode, p_item );
+
PL_UNLOCK_IF( !b_locked );
return p_item;
@@ -715,14 +717,12 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
pl_priv(p_playlist)->request.i_status = PLAYLIST_RUNNING;
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_album = input_item_GetAlbum( p_item->p_input );
if( pl_priv(p_playlist)->b_auto_preparse &&
- (i_mode & PLAYLIST_PREPARSE ||
- ( i_mode & PLAYLIST_SPREPARSE &&
( EMPTY_STR( psz_artist ) || ( EMPTY_STR( psz_album ) ) )
- ) ) )
+ )
playlist_PreparseEnqueue( p_playlist, p_item->p_input, pl_Locked );
/* If we already have it, signal it */
else if( !EMPTY_STR( psz_artist ) && !EMPTY_STR( psz_album ) )
More information about the vlc-devel
mailing list