[libmediaart] cache: Allow null values in artist, title and prefix
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart] cache: Allow null values in artist, title and prefix
- Date: Wed, 10 Sep 2014 09:04:22 +0000 (UTC)
commit d950b30a76df6b2d809da6a149b68f54742eb49b
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Wed Apr 2 14:31:25 2014 +0800
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
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]