[vlc-devel] commit: notify: 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:05:42 2010 +0200| [3ecd0eb5dcb4172a9eaac984426b9d4899eb265c] | committer: Rémi Denis-Courmont
notify: use make_path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ecd0eb5dcb4172a9eaac984426b9d4899eb265c
---
modules/misc/notify/notify.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/modules/misc/notify/notify.c b/modules/misc/notify/notify.c
index 850d6df..f9c4b2d 100644
--- a/modules/misc/notify/notify.c
+++ b/modules/misc/notify/notify.c
@@ -209,11 +209,17 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
psz_arturl = input_item_GetArtURL( p_input_item );
vlc_object_release( p_input );
- if( psz_arturl && !strncmp( psz_arturl, "file://", 7 ) &&
- decode_URI( psz_arturl + 7 ) )
+ if( psz_arturl )
+ {
+ char *psz = make_path( psz_arturl );
+ free( psz_arturl );
+ psz = psz_arturl;
+ }
+
+ if( psz_arturl )
{ /* scale the art to show it in notify popup */
GError *p_error = NULL;
- pix = gdk_pixbuf_new_from_file_at_scale( &psz_arturl[7],
+ pix = gdk_pixbuf_new_from_file_at_scale( psz_arturl,
72, 72, TRUE, &p_error );
}
else /* else we show state-of-the art logo */
More information about the vlc-devel
mailing list