diff options
author | Arnel A. Borja <arnelborja@src.gnome.org> | 2014-04-02 14:31:25 +0800 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2014-09-10 10:03:55 +0100 |
commit | d950b30a76df6b2d809da6a149b68f54742eb49b (patch) | |
tree | c289573c04bcf1bf7e13cb8ee4a891ca10987dd1 | |
parent | 3efb47019cca38752bf60f29222c0b4b38d6c201 (diff) | |
download | libmediaart-d950b30a76df6b2d809da6a149b68f54742eb49b.tar.gz |
cache: Allow null values in artist, title and prefix
The function media_art_get_file checks for null values in artist, title and
prefix arguments, and puts special values on them if they do.
Do the same on media_art_get_path which calls media_art_get_file internally.
https://bugzilla.gnome.org/show_bug.cgi?id=727478
-rw-r--r-- | libmediaart/cache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmediaart/cache.c b/libmediaart/cache.c index abc1e63..3492683 100644 --- a/libmediaart/cache.c +++ b/libmediaart/cache.c @@ -237,9 +237,9 @@ media_art_checksum_for_data (GChecksumType checksum_type, /** * media_art_get_file: - * @artist: the artist - * @title: the title - * @prefix: the prefix for cache files, for example "album" + * @artist: (allow-none): the artist + * @title: (allow-none): the title + * @prefix: (allow-none): the prefix for cache files, for example "album" * @file: (allow-none): a #GFile representing the actual media art or %NULL * @cache_file: (out) (transfer full) (allow-none): a pointer to a * #GFile which represents the cached file for media art, or %NULL @@ -387,9 +387,9 @@ media_art_get_file (const gchar *artist, /** * media_art_get_path: - * @artist: the artist - * @title: the title - * @prefix: the prefix, for example "album" + * @artist: (allow-none): the artist + * @title: (allow-none): the title + * @prefix: (allow-none): the prefix, for example "album" * @uri: (allow-none): the uri of the file or %NULL * @cache_path: (out) (transfer full) (allow-none): a string * representing the path to the cache for this media art |