summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-18 22:46:34 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-18 22:46:34 +0200
commit432097893c7d2a604b8aac80e2951884d5e1bab9 (patch)
tree3d71c9357720ae3690d66812bac88a9cbd702003 /plugins
parent2cda5af95aabb6ea22e6e04fcf30f8aa5d5af3f1 (diff)
parent7b4d73cfed3227057e4de32124d72a04e1a85f06 (diff)
Merge pull request #15 from Lithopsian/artwork
Streaming artwork
Diffstat (limited to 'plugins')
-rw-r--r--plugins/artwork/artwork.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c
index 30f973f0..9a3caa76 100644
--- a/plugins/artwork/artwork.c
+++ b/plugins/artwork/artwork.c
@@ -151,7 +151,7 @@ make_cache_dir_path (char *path, int size, const char *artist, int img_size) {
const char *cache = getenv ("XDG_CACHE_HOME");
int sz;
-
+
if (img_size == -1) {
sz = snprintf (path, size, cache ? "%s/deadbeef/covers/" : "%s/.cache/deadbeef/covers/", cache ? cache : getenv ("HOME"));
}
@@ -399,7 +399,7 @@ jpeg_resize (const char *fname, const char *outname, int scaled_size) {
jpeg_start_decompress (&cinfo);
int i;
-
+
cinfo_out.err = cinfo.err;
jpeg_create_compress(&cinfo_out);
@@ -642,7 +642,7 @@ png_resize (const char *fname, const char *outname, int scaled_size) {
int i;
-
+
cinfo_out.err = jpeg_std_error (&jerr.pub);
jerr.pub.error_exit = my_error_exit;
/* Establish the setjmp return context for my_error_exit to use. */
@@ -1323,12 +1323,12 @@ get_album_art (const char *fname, const char *artist, const char *album, int siz
{
char path [1024];
- if (!deadbeef->is_local_file (fname)) {
- if (callback) {
- callback (NULL, NULL, NULL, user_data);
- }
- return NULL;
- }
+// if (!deadbeef->is_local_file (fname)) {
+// if (callback) {
+// callback (NULL, NULL, NULL, user_data);
+// }
+// return NULL;
+// }
make_cache_path2 (path, sizeof (path), fname, album, artist, size);
char *p = find_image (path);
@@ -1577,7 +1577,7 @@ static DB_artwork_plugin_t plugin = {
.plugin.plugin.id = "artwork",
.plugin.plugin.name = "Album Artwork",
.plugin.plugin.descr = "Loads album artwork either from local directories or from internet",
- .plugin.plugin.copyright =
+ .plugin.plugin.copyright =
"Album Art plugin for DeaDBeeF\n"
"Copyright (C) 2009-2011 Viktor Semykin <thesame.ml@gmail.com>\n"
"Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net>\n"