[vlc-commits] sql_ml: lock was missing, use GetURI

Francois Cartegnie git at videolan.org
Tue Sep 4 20:27:22 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep  4 20:10:48 2012 +0200| [eb7a298fb6ab52d4f6bacc5054078fde158a93fd] | committer: Francois Cartegnie

sql_ml: lock was missing, use GetURI

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb7a298fb6ab52d4f6bacc5054078fde158a93fd
---

 modules/media_library/sql_media_library.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/media_library/sql_media_library.c b/modules/media_library/sql_media_library.c
index 0604f48..1f17581 100644
--- a/modules/media_library/sql_media_library.c
+++ b/modules/media_library/sql_media_library.c
@@ -1210,7 +1210,7 @@ void CopyInputItemToMedia( ml_media_t *p_media, input_item_t *p_item )
     p_media->psz_title      = input_item_GetTitle       ( p_item );
     p_media->psz_uri        = input_item_GetURL         ( p_item );
     if( !p_media->psz_uri )
-        p_media->psz_uri    = strdup( p_item->psz_uri );
+        p_media->psz_uri = input_item_GetURI( p_item );
     p_media->psz_album      = input_item_GetAlbum       ( p_item );
     p_media->psz_cover      = input_item_GetArtURL      ( p_item );
     p_media->psz_genre      = input_item_GetGenre       ( p_item );



More information about the vlc-commits mailing list