]> git.sesse.net Git - vlc/blobdiff - modules/misc/notify/notify.c
Add --data-path option. Access the src share directory now works from build tree.
[vlc] / modules / misc / notify / notify.c
index 1bbcc2073ece5eb37ee8962ef44dac65125e06dc..99453869273ea5ac82fdaa7afd19d5767e7dc5ce 100644 (file)
@@ -224,11 +224,13 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     {
         GError *p_error = NULL;
         char *psz_pixbuf;
-        if( asprintf( &psz_pixbuf, "%s/vlc48x48.png", config_GetDataDir() ) >= 0 )
+        char *psz_data = config_GetDataDir( p_this );
+        if( asprintf( &psz_pixbuf, "%s/vlc48x48.png", psz_data ) >= 0 )
         {
             pix = gdk_pixbuf_new_from_file( psz_pixbuf, &p_error );
             free( psz_pixbuf );
         }
+        free( psz_data );
     }
 
     free( psz_arturl );