Commit 826d347d authored by Sam Thursfield's avatar Sam Thursfield Committed by Martyn Russell

Rename albumart functions to media-art

We now support video posters as well!

Fixes GB#660784
parent dbfb327c
......@@ -1561,7 +1561,7 @@ AC_ARG_ENABLE(qt,
[enable Qt support, (MP3 album art) [[default=auto]]]),,
[enable_qt=auto])
selected_for_albumart="no (disabled)"
selected_for_media_art="no (disabled)"
##################################################################
# Check for tracker-extract: Choose between GdkPixbuf/Qt
......@@ -1578,7 +1578,7 @@ if test "x$enable_qt" != "xno" && test "x$enable_gdkpixbuf" != "xyes"; then
if test "x$have_qt" = "xyes"; then
AC_DEFINE(HAVE_QT, [], [Define if we have Qt])
selected_for_albumart="yes (qt)"
selected_for_media_art="yes (qt)"
fi
else
have_qt="no (disabled)"
......@@ -1603,7 +1603,7 @@ if test "x$enable_gdkpixbuf" != "xno" && test "x$enable_quill" != "xyes"; then
if test "x$have_gdkpixbuf" = "xyes"; then
AC_DEFINE(HAVE_GDKPIXBUF, [], [Define if we have GdkPixbuf])
selected_for_albumart="yes (GdkPixbuf)"
selected_for_media_art="yes (GdkPixbuf)"
fi
else
have_gdkpixbuf="no (disabled)"
......@@ -2345,7 +2345,7 @@ Metadata Extractors:
Support XML / HTML: $have_libxml2
Support embedded / sidecar XMP: $have_exempi
Support generic media formats: $have_generic_media_handler ($have_generic_media_handler_app) (backend: $gstreamer_backend)
Support MP3 album art: $selected_for_albumart
Support media art processing: $selected_for_media_art
Support cue sheet parsing: $have_libcue
Support playlists (w/ Totem): $have_playlist
......
......@@ -30,7 +30,7 @@ libtracker_common_la_SOURCES = \
tracker-utils.c \
tracker-crc32.c \
tracker-locale.c \
tracker-albumart.c
tracker-media-art.c
noinst_HEADERS = \
tracker-dbus.h \
......@@ -49,7 +49,7 @@ noinst_HEADERS = \
tracker-utils.h \
tracker-crc32.h \
tracker-locale.h \
tracker-albumart.h
tracker-media-art.h
if HAVE_TRACKER_FTS
libtracker_common_la_SOURCES += tracker-language.c
......
......@@ -36,10 +36,10 @@
#include "tracker-file-utils.h"
#include "tracker-date-time.h"
#include "tracker-albumart.h"
#include "tracker-media-art.h"
static gboolean
albumart_strip_find_next_block (const gchar *original,
media_art_strip_find_next_block (const gchar *original,
const gunichar open_char,
const gunichar close_char,
gint *open_pos,
......@@ -75,11 +75,11 @@ albumart_strip_find_next_block (const gchar *original,
}
/**
* tracker_albumart_strip_invalid_entities:
* tracker_media_art_strip_invalid_entities:
* @original: original string
*
* Strip a albumname or artistname string to prepare it for calculating the
* albumart path with it. Certain characters and charactersets will be stripped
* media art path with it. Certain characters and charactersets will be stripped
* and a newly allocated string returned which you must free with g_free.
*
* Returns: copy of original but then stripped
......@@ -87,7 +87,7 @@ albumart_strip_find_next_block (const gchar *original,
* Since: 0.10.14
*/
gchar *
tracker_albumart_strip_invalid_entities (const gchar *original)
tracker_media_art_strip_invalid_entities (const gchar *original)
{
GString *str_no_blocks;
gchar **strv;
......@@ -120,7 +120,7 @@ tracker_albumart_strip_invalid_entities (const gchar *original)
gint start, end;
/* Go through blocks, find the earliest block we can */
if (albumart_strip_find_next_block (p, blocks[i][0], blocks[i][1], &start, &end)) {
if (media_art_strip_find_next_block (p, blocks[i][0], blocks[i][1], &start, &end)) {
if (pos1 == -1 || start < pos1) {
pos1 = start;
pos2 = end;
......@@ -181,9 +181,9 @@ tracker_albumart_strip_invalid_entities (const gchar *original)
}
static gchar *
albumart_checksum_for_data (GChecksumType checksum_type,
const guchar *data,
gsize length)
media_art_checksum_for_data (GChecksumType checksum_type,
const guchar *data,
gsize length)
{
GChecksum *checksum;
gchar *retval;
......@@ -201,7 +201,7 @@ albumart_checksum_for_data (GChecksumType checksum_type,
}
/**
* tracker_albumart_get_path:
* tracker_media_art_get_path:
* @artist: the artist
* @album: the album
* @prefix: For example "album"
......@@ -209,18 +209,18 @@ albumart_checksum_for_data (GChecksumType checksum_type,
* @path: the location to store the local path
* @local_uri: the location to store the local uri or NULL
*
* Get the path to albumart for a given album or song. Newly allocated data in
* Get the path to media art for a given album or song. Newly allocated data in
* @path and @local_uri must be freed with g_free.
*
* Since: 0.10.14
*/
void
tracker_albumart_get_path (const gchar *artist,
const gchar *album,
const gchar *prefix,
const gchar *uri,
gchar **path,
gchar **local_uri)
tracker_media_art_get_path (const gchar *artist,
const gchar *album,
const gchar *prefix,
const gchar *uri,
gchar **path,
gchar **local_uri)
{
gchar *art_filename;
gchar *dir;
......@@ -246,13 +246,13 @@ tracker_albumart_get_path (const gchar *artist,
if (!artist) {
artist_stripped = g_strdup (" ");
} else {
artist_stripped = tracker_albumart_strip_invalid_entities (artist);
artist_stripped = tracker_media_art_strip_invalid_entities (artist);
}
if (!album) {
album_stripped = g_strdup (" ");
} else {
album_stripped = tracker_albumart_strip_invalid_entities (album);
album_stripped = tracker_media_art_strip_invalid_entities (album);
}
artist_norm = g_utf8_normalize (artist_stripped, -1, G_NORMALIZE_NFKD);
......@@ -276,12 +276,12 @@ tracker_albumart_get_path (const gchar *artist,
g_mkdir_with_parents (dir, 0770);
}
artist_checksum = albumart_checksum_for_data (G_CHECKSUM_MD5,
(const guchar *) artist_down,
strlen (artist_down));
album_checksum = albumart_checksum_for_data (G_CHECKSUM_MD5,
(const guchar *) album_down,
strlen (album_down));
artist_checksum = media_art_checksum_for_data (G_CHECKSUM_MD5,
(const guchar *) artist_down,
strlen (artist_down));
album_checksum = media_art_checksum_for_data (G_CHECKSUM_MD5,
(const guchar *) album_down,
strlen (album_down));
g_free (artist_down);
g_free (album_down);
......
......@@ -17,8 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __LIBTRACKER_COMMON_ALBUMART_H__
#define __LIBTRACKER_COMMON_ALBUMART_H__
#ifndef __LIBTRACKER_COMMON_MEDIA_ART_H__
#define __LIBTRACKER_COMMON_MEDIA_ART_H__
#include <glib.h>
......@@ -28,15 +28,15 @@ G_BEGIN_DECLS
#error "only <libtracker-common/tracker-common.h> must be included directly."
#endif
gchar * tracker_albumart_strip_invalid_entities (const gchar *original);
void tracker_albumart_get_path (const gchar *artist,
const gchar *album,
const gchar *prefix,
const gchar *uri,
gchar **path,
gchar **local_uri);
gchar * tracker_media_art_strip_invalid_entities (const gchar *original);
void tracker_media_art_get_path (const gchar *artist,
const gchar *album,
const gchar *prefix,
const gchar *uri,
gchar **path,
gchar **local_uri);
G_END_DECLS
#endif /* __LIBTRACKER_COMMON_LOCALE_H__ */
#endif /* __LIBTRACKER_COMMON_MEDIA_ART_H__ */
......@@ -86,13 +86,13 @@ libtracker_miner_@TRACKER_API_VERSION@_la_SOURCES = \
tracker-password-provider.c \
tracker-thumbnailer.c \
tracker-thumbnailer.h \
tracker-albumart.c \
tracker-albumart.h
tracker-media-art.c \
tracker-media-art.h
libtracker_minerinclude_HEADERS = \
tracker-albumart.h \
tracker-crawler.h \
tracker-indexing-tree.h \
tracker-media-art.h \
tracker-miner.h \
tracker-miner-common.h \
tracker-miner-enums.h \
......
......@@ -24,10 +24,10 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <libtracker-common/tracker-albumart.h>
#include <libtracker-common/tracker-media-art.h>
#include <libtracker-sparql/tracker-sparql.h>
#include "tracker-albumart.h"
#include "tracker-media-art.h"
static gboolean had_any = FALSE;
static guint timer_id = 0;
......@@ -81,25 +81,25 @@ on_query_finished (GObject *source_object,
artist = tracker_sparql_cursor_get_value_type (cursor, 1) != TRACKER_SPARQL_VALUE_TYPE_UNBOUND ? tracker_sparql_cursor_get_string (cursor, 1, NULL) : NULL;
/* The get_path API does stripping itself */
tracker_albumart_get_path (artist,
album,
"album", NULL,
&target, NULL);
tracker_media_art_get_path (artist,
album,
"album", NULL,
&target, NULL);
g_hash_table_replace (table, target, target);
/* Also add the file to which the symlinks are made */
tracker_albumart_get_path (NULL,
album,
"album", NULL,
&album_path, NULL);
tracker_media_art_get_path (NULL,
album,
"album", NULL,
&album_path, NULL);
g_hash_table_replace (table, album_path, album_path);
}
/* Perhaps we should have an internal list of albumart files that we made,
* instead of going over all the albumart (which could also have been made
/* Perhaps we should have an internal list of media art files that we made,
* instead of going over all the media art (which could also have been made
* by other softwares) */
for (name = g_dir_read_name (dir); name != NULL; name = g_dir_read_name (dir)) {
......@@ -146,20 +146,20 @@ on_error:
}
}
/**
* tracker_albumart_remove_add:
* tracker_media_art_remove_add:
* @uri: URI of the file
* @mime_type: mime-type of the file
*
* Adds a new request to tell the albumart subsystem that @uri was removed.
* Stored requests can be processed with tracker_albumart_check_cleanup().
* Adds a new request to tell the media art subsystem that @uri was removed.
* Stored requests can be processed with tracker_media_art_check_cleanup().
*
* Returns: #TRUE if successfully stored to be reported, #FALSE otherwise.
*
* Since: 0.10.4
*/
gboolean
tracker_albumart_remove_add (const gchar *uri,
const gchar *mime_type)
tracker_media_art_remove_add (const gchar *uri,
const gchar *mime_type)
{
/* mime_type can be NULL */
......@@ -200,14 +200,14 @@ on_timer_destroy (gpointer data)
}
/**
* tracker_albumart_check_cleanup:
* tracker_media_art_check_cleanup:
*
* Process all stored albumart requests.
* Process all stored media art requests.
*
* Since: 0.10.4
*/
void
tracker_albumart_check_cleanup (TrackerSparqlConnection *connection)
tracker_media_art_check_cleanup (TrackerSparqlConnection *connection)
{
if (had_any && timer_id == 0) {
......
......@@ -17,8 +17,8 @@
* 02110-1301 USA
*/
#ifndef __LIBTRACKER_MINER_ALBUMART_H__
#define __LIBTRACKER_MINER_ALBUMART_H__
#ifndef __LIBTRACKER_MINER_MEDIA_ART_H__
#define __LIBTRACKER_MINER_MEDIA_ART_H__
#include <libtracker-sparql/tracker-sparql.h>
......@@ -28,9 +28,9 @@
G_BEGIN_DECLS
gboolean tracker_albumart_remove_add (const gchar *uri,
const gchar *mime_type);
void tracker_albumart_check_cleanup (TrackerSparqlConnection *connection);
gboolean tracker_media_art_remove_add (const gchar *uri,
const gchar *mime_type);
void tracker_media_art_check_cleanup (TrackerSparqlConnection *connection);
G_END_DECLS
#endif /* __LIBTRACKER_MINER_ALBUMART_H__ */
#endif /* __LIBTRACKER_MINER_MEDIA_ART_H__ */
......@@ -28,7 +28,8 @@
#include "tracker-crawler.h"
#include "tracker-marshal.h"
#include "tracker-miner-fs.h"
#include "tracker-albumart.h"
#include "tracker-media-art.h"
#include "tracker-monitor.h"
#include "tracker-utils.h"
#include "tracker-thumbnailer.h"
#include "tracker-priority-queue.h"
......@@ -1279,7 +1280,7 @@ item_remove (TrackerMinerFS *fs,
flags = TRACKER_BULK_MATCH_EQUALS;
} else {
tracker_thumbnailer_remove_add (uri, NULL);
tracker_albumart_remove_add (uri, NULL);
tracker_media_art_remove_add (uri, NULL);
}
/* FIRST:
......@@ -2143,7 +2144,7 @@ item_queue_handlers_cb (gpointer user_data)
process_stop (fs);
tracker_thumbnailer_send ();
tracker_albumart_check_cleanup (tracker_miner_get_connection (TRACKER_MINER (fs)));
tracker_media_art_check_cleanup (tracker_miner_get_connection (TRACKER_MINER (fs)));
} else {
/* Flush any possible pending update here */
tracker_sparql_buffer_flush (fs->priv->sparql_buffer,
......
......@@ -25,7 +25,7 @@
#include <libtracker-miner/tracker-crawler.h>
#include <libtracker-miner/tracker-storage.h>
#include <libtracker-miner/tracker-thumbnailer.h>
#include <libtracker-miner/tracker-albumart.h>
#include <libtracker-miner/tracker-media-art.h>
#include <libtracker-miner/tracker-network-provider.h>
#include <libtracker-miner/tracker-password-provider.h>
#include <libtracker-miner/tracker-miner-object.h>
......
......@@ -429,19 +429,19 @@ libexec_PROGRAMS = tracker-extract
tracker_extract_SOURCES = \
$(marshal_sources) \
tracker-albumart.c \
tracker-albumart.h \
tracker-config.c \
tracker-config.h \
tracker-controller.c \
tracker-controller.h \
tracker-extract.c \
tracker-extract.h \
tracker-media-art.c \
tracker-media-art.h \
tracker-read.c \
tracker-read.h \
tracker-main.c \
tracker-main.h \
tracker-albumart-generic.h
tracker-media-art-generic.h
tracker_extract_LDADD = \
$(top_builddir)/src/libtracker-extract/libtracker-extract-@TRACKER_API_VERSION@.la \
......@@ -463,12 +463,12 @@ tracker_extract_SOURCES += tracker-topanalyzer.cpp tracker-topanalyzer.h
endif
if HAVE_GDKPIXBUF
tracker_extract_SOURCES += tracker-albumart-pixbuf.c
tracker_extract_SOURCES += tracker-media-art-pixbuf.c
else
if HAVE_QT
tracker_extract_SOURCES += tracker-albumart-qt.cpp
tracker_extract_SOURCES += tracker-media-art-qt.cpp
else
tracker_extract_SOURCES += tracker-albumart-dummy.c
tracker_extract_SOURCES += tracker-media-art-dummy.c
endif
endif
......
......@@ -53,7 +53,7 @@
#include <libtracker-common/tracker-common.h>
#include <libtracker-extract/tracker-extract.h>
#include "tracker-albumart.h"
#include "tracker-media-art.h"
#include "tracker-cue-sheet.h"
/* We wait this long (seconds) for NULL state before freeing */
......@@ -2031,13 +2031,13 @@ tracker_extract_gstreamer (const gchar *uri,
graph);
if (media_type != TRACKER_MEDIA_ART_NONE) {
tracker_albumart_process (extractor->album_art_data,
extractor->album_art_size,
extractor->album_art_mime,
media_type,
media_artist,
media_title,
uri);
tracker_media_art_process (extractor->album_art_data,
extractor->album_art_size,
extractor->album_art_mime,
media_type,
media_artist,
media_title,
uri);
}
g_free (media_artist);
......
......@@ -44,7 +44,7 @@
#include <libtracker-extract/tracker-extract.h>
#include "tracker-albumart.h"
#include "tracker-media-art.h"
#ifdef FRAME_ENABLE_TRACE
#warning Frame traces enabled
......@@ -57,7 +57,7 @@
* with unlimited size (might need to create private copy in some
* special cases, finding continuous space etc). We now take 5 first
* MB of the file and assume that this is enough. In theory there is
* no maximum size as someone could embed 50 gigabytes of albumart
* no maximum size as someone could embed 50 gigabytes of album art
* there.
*/
......@@ -173,9 +173,9 @@ typedef struct {
gint set_number;
gint set_count;
unsigned char *albumart_data;
size_t albumart_size;
gchar *albumart_mime;
unsigned char *media_art_data;
size_t media_art_size;
gchar *media_art_mime;
id3tag id3v1;
id3v2tag id3v22;
......@@ -1246,14 +1246,14 @@ get_id3v24_tags (id3v24frame frame,
pic_type = data[pos + 1 + mime_len + 1];
desc = &data[pos + 1 + mime_len + 1 + 1];
if (pic_type == 3 || (pic_type == 0 && filedata->albumart_size == 0)) {
if (pic_type == 3 || (pic_type == 0 && filedata->media_art_size == 0)) {
offset = pos + 1 + mime_len + 2;
offset += id3v2_strlen (text_type, desc, csize - offset) + id3v2_nul_size (text_type);
filedata->albumart_data = g_malloc0 (csize - offset);
filedata->albumart_mime = g_strndup (mime, mime_len);
memcpy (filedata->albumart_data, &data[offset], csize - offset);
filedata->albumart_size = csize - offset;
filedata->media_art_data = g_malloc0 (csize - offset);
filedata->media_art_mime = g_strndup (mime, mime_len);
memcpy (filedata->media_art_data, &data[offset], csize - offset);
filedata->media_art_size = csize - offset;
}
break;
}
......@@ -1432,14 +1432,14 @@ get_id3v23_tags (id3v24frame frame,
pic_type = data[pos + 1 + mime_len + 1];
desc = &data[pos + 1 + mime_len + 1 + 1];
if (pic_type == 3 || (pic_type == 0 && filedata->albumart_size == 0)) {
if (pic_type == 3 || (pic_type == 0 && filedata->media_art_size == 0)) {
offset = pos + 1 + mime_len + 2;
offset += id3v2_strlen (text_type, desc, csize - offset) + id3v2_nul_size (text_type);
filedata->albumart_data = g_malloc0 (csize - offset);
filedata->albumart_mime = g_strndup (mime, mime_len);
memcpy (filedata->albumart_data, &data[offset], csize - offset);
filedata->albumart_size = csize - offset;
filedata->media_art_data = g_malloc0 (csize - offset);
filedata->media_art_mime = g_strndup (mime, mime_len);
memcpy (filedata->media_art_data, &data[offset], csize - offset);
filedata->media_art_size = csize - offset;
}
break;
}
......@@ -1609,14 +1609,14 @@ get_id3v20_tags (id3v2frame frame,
pic_type = data[pos + 1 + 3];
desc = &data[pos + 1 + 3 + 1];
if (pic_type == 3 || (pic_type == 0 && filedata->albumart_size == 0)) {
if (pic_type == 3 || (pic_type == 0 && filedata->media_art_size == 0)) {
offset = pos + 1 + 3 + 1;
offset += id3v2_strlen (text_type, desc, csize - offset) + id3v2_nul_size (text_type);
filedata->albumart_mime = g_strndup (mime, 3);
filedata->albumart_data = g_malloc0 (csize - offset);
memcpy (filedata->albumart_data, &data[offset], csize - offset);
filedata->albumart_size = csize - offset;
filedata->media_art_mime = g_strndup (mime, 3);
filedata->media_art_data = g_malloc0 (csize - offset);
memcpy (filedata->media_art_data, &data[offset], csize - offset);
filedata->media_art_size = csize - offset;
}
} else {
/* text frames */
......@@ -2503,15 +2503,15 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
/* Get mp3 stream info */
mp3_parse (buffer, buffer_size, audio_offset, uri, metadata, &md);
tracker_albumart_process (md.albumart_data,
md.albumart_size,
md.albumart_mime,
TRACKER_MEDIA_ART_ALBUM,
md.performer,
md.album,
uri);
g_free (md.albumart_data);
g_free (md.albumart_mime);
tracker_media_art_process (md.media_art_data,
md.media_art_size,
md.media_art_mime,
TRACKER_MEDIA_ART_ALBUM,
md.performer,
md.album,
uri);
g_free (md.media_art_data);
g_free (md.media_art_mime);
id3v2tag_free (&md.id3v22);
id3v2tag_free (&md.id3v23);
......
......@@ -47,7 +47,7 @@
#include <libtracker-data/tracker-db-manager.h>
#include "tracker-albumart.h"
#include "tracker-media-art.h"
#include "tracker-config.h"
#include "tracker-main.h"
#include "tracker-extract.h"
......@@ -278,7 +278,7 @@ run_standalone (TrackerConfig *config)
}
tracker_locale_init ();
tracker_albumart_init ();
tracker_media_art_init ();
/* This makes sure we don't steal all the system's resources */
initialize_priority_and_scheduling (tracker_config_get_sched_idle (config),
......@@ -294,7 +294,7 @@ run_standalone (TrackerConfig *config)
if (!object) {
g_object_unref (file);
g_free (uri);
tracker_albumart_shutdown ();
tracker_media_art_shutdown ();
tracker_locale_shutdown ();
return EXIT_FAILURE;
}
......@@ -307,7 +307,7 @@ run_standalone (TrackerConfig *config)
g_object_unref (file);
g_free (uri);
tracker_albumart_shutdown ();
tracker_media_art_shutdown ();
tracker_locale_shutdown ();
return EXIT_SUCCESS;
......@@ -444,7 +444,7 @@ main (int argc, char *argv[])
#endif /* THREAD_ENABLE_TRACE */
tracker_locale_init ();
tracker_albumart_init ();
tracker_media_art_init ();
/* Main loop */
main_loop = g_main_loop_new (NULL, FALSE);
......@@ -457,7 +457,7 @@ main (int argc, char *argv[])
g_message ("Shutdown started");
/* Shutdown subsystems */
tracker_albumart_shutdown ();
tracker_media_art_shutdown ();
tracker_locale_shutdown ();
g_object_unref (object);
......
......@@ -20,30 +20,30 @@
* Philip Van Hoof <philip@codeminded.be>
*/
#include "tracker-albumart-generic.h"
#include "tracker-media-art-generic.h"
void
tracker_albumart_plugin_init (void)
tracker_media_art_plugin_init (void)
{
}
void
tracker_albumart_plugin_shutdown (void)
tracker_media_art_plugin_shutdown (void)
{
}
gboolean
tracker_albumart_file_to_jpeg (const gchar *filename,
const gchar *target)
tracker_media_art_file_to_jpeg (const gchar *filename,
const gchar *target)
{
return FALSE;
}
gboolean
tracker_albumart_buffer_to_jpeg (const unsigned char *buffer,
size_t len,
const gchar *buffer_mime,
const gchar *target)
tracker_media_art_buffer_to_jpeg (const unsigned char *buffer,
size_t len,
const gchar *buffer_mime,
const gchar *target)
{
return FALSE;
}
......@@ -20,23 +20,23 @@
* Philip Van Hoof <philip@codeminded.be>
*/
#ifndef __TRACKER_ALBUMART_GENERIC_H__
#define __TRACKER_ALBUMART_GENERIC_H__
#ifndef __TRACKER_MEDIA_ART_GENERIC_H__
#define __TRACKER_MEDIA_ART_GENERIC_H__
#include <glib.h>
G_BEGIN_DECLS
void tracker_albumart_plugin_init (void);
void tracker_albumart_plugin_shutdown (void);
void tracker_media_art_plugin_init (void);
void tracker_media_art_plugin_shutdown (void);
gboolean tracker_albumart_file_to_jpeg (const gchar *filename,
const gchar *target);
gboolean tracker_albumart_buffer_to_jpeg (const unsigned char *buffer,
size_t len,
const gchar *buffer_mime,
const gchar *target);
gboolean tracker_media_art_file_to_jpeg (const gchar *filename,
const gchar *target);
gboolean tracker_media_art_buffer_to_jpeg (const unsigned char *buffer,
size_t len,
const gchar *buffer_mime,
const gchar *target);
G_END_DECLS
#endif /* __TRACKER_ALBUMART_GENERIC_H__ */
#endif /* __TRACKER_MEDIA_ART_GENERIC_H__ */
......@@ -22,21 +22,21 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "tracker-albumart-generic.h"
#include "tracker-media-art-generic.h"
void
tracker_albumart_plugin_init (void)
tracker_media_art_plugin_init (void)
{
}
void
tracker_albumart_plugin_shutdown (void)
tracker_media_art_plugin_shutdown (void)
{
}
gboolean
tracker_albumart_file_to_jpeg (const gchar *filename,
const gchar *target)
tracker_media_art_file_to_jpeg (const gchar *filename,
const gchar *target)
{
GdkPixbuf *pixbuf;
GError *error = NULL;
......@@ -62,10 +62,10 @@ tracker_albumart_file_to_jpeg (const gchar *filename,