[vlc-devel] commit: growl: use make_path() ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 20 20:11:37 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 20 21:02:56 2010 +0200| [4cf6a1bafed216c8786c537a8e67780794dc85c8] | committer: Rémi Denis-Courmont 

growl: use make_path()

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

 modules/misc/notify/growl.m |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/modules/misc/notify/growl.m b/modules/misc/notify/growl.m
index fa23760..52ad6f9 100644
--- a/modules/misc/notify/growl.m
+++ b/modules/misc/notify/growl.m
@@ -210,10 +210,15 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     }
 
     char *psz_arturl = input_item_GetArtURL( p_item );
+    if( psz_arturl )
+    {
+        char *psz = make_path( psz_arturl );
+        free( psz_arturl );
+        psz_arturl = psz;
+    }
     CFDataRef art = NULL;
-    if( psz_arturl && !strncmp( psz_arturl, "file://", 7 ) &&
-                    decode_URI( psz_arturl + 7 ) )
-        art = (CFDataRef) readFile( psz_arturl + 7 );
+    if( psz_arturl )
+        art = (CFDataRef) readFile( psz_arturl );
 
     free( psz_title );
     free( psz_artist );




More information about the vlc-devel mailing list