[vlc-devel] commit: Fixed art url from meta fetcher. (Laurent Aimar )
git version control
git at videolan.org
Sat Jan 24 19:55:43 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jan 24 18:41:50 2009 +0100| [06224b1cc5635dda203feba6297757aa623f0010] | committer: Laurent Aimar
Fixed art url from meta fetcher.
It still does not work because of [2413].
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=06224b1cc5635dda203feba6297757aa623f0010
---
src/input/input.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index ea4cb75..c7b210f 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2820,6 +2820,13 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
vlc_meta_Delete( p_meta );
+ if( !psz_arturl || *psz_arturl == '\0' )
+ {
+ psz_arturl = vlc_meta_Get( p_item->p_meta, vlc_meta_ArtworkURL );
+ if( psz_arturl )
+ psz_arturl = strdup( psz_arturl );
+ }
+
if( psz_arturl && *psz_arturl )
{
vlc_meta_Set( p_item->p_meta, vlc_meta_ArtworkURL, psz_arturl );
@@ -2834,9 +2841,8 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
input_ExtractAttachmentAndCacheArt( p_input );
}
}
- free( psz_arturl );
-
vlc_mutex_unlock( &p_item->lock );
+ free( psz_arturl );
if( psz_title )
{
More information about the vlc-devel
mailing list