This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 1275197a52ec9b1107e5383c56d658abba4cffbe
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Wed Apr 1 18:20:10 2026 +0100
thumbs - music - fix getting artwork
---
src/backends/default/thumb_music.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/backends/default/thumb_music.c b/src/backends/default/thumb_music.c
index 3f1cfc5..a7ee262 100644
--- a/src/backends/default/thumb_music.c
+++ b/src/backends/default/thumb_music.c
@@ -58,6 +58,7 @@ _cb_vid_open_done_timeout(void *data EINA_UNUSED)
return EINA_FALSE;
}
+
static void
_cb_vid_open_done(void *data EINA_UNUSED, Evas_Object *obj,
void *event EINA_UNUSED)
@@ -75,8 +76,9 @@ _cb_vid_open_done(void *data EINA_UNUSED, Evas_Object *obj,
{
Evas_Object *o = emotion_file_meta_artwork_get(obj, path,
EMOTION_ARTWORK_IMAGE);
- if (!o) o = emotion_file_meta_artwork_get(obj, path,
- EMOTION_ARTWORK_PREVIEW_IMAGE);
+ if (!o)
+ o = emotion_file_meta_artwork_get(obj, path,
+ EMOTION_ARTWORK_PREVIEW_IMAGE);
if (o)
{ // file has embedded artwork
int w, h;
@@ -192,9 +194,6 @@ _thumb_online_search(const char *path)
// get file and where extension starts to be removed
file = ecore_file_file_get(path);
ext = strchr(file, '.');
-
- _video_metadata_get(path);
-
if ((title) || (album) || (artist))
{
query_buf = eina_strbuf_new();
@@ -368,14 +367,16 @@ thumb_music(Eet_File *ef, const char *path, const char *mime EINA_UNUSED,
// look for an explicitly "requested" file for the thumb path
thumb_file = _thumb_explicit_find(path);
+ _video_metadata_get(path);
// if we didn't find an explicit matching thumb path in dir or nearby...
if (thumb_file) _thumb_image_file_set(thumb_file);
- else
+ else if (artwork)
{ // use video artwork object as our album art thumbnail
evas_object_del(im); // don't need the old one
im = artwork; // new one
artwork = NULL;
+ evas_object_show(im); // show it
evas_object_image_size_get(im, &iw, &ih);
alpha = evas_object_image_alpha_get(im);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.