and for 0.1.3 - fix albumart thumbnail list

v-0.4.0
Carsten Haitzler 8 years ago
parent 796684dd27
commit b78bffcf1a
  1. 17
      src/bin/video.c
  2. 2
      src/bin/videothumb.c

@ -50,10 +50,23 @@ _art_check(Evas_Object *obj)
}
if (sd->doart)
{
char *thumb = NULL, *realfile;
char *thumb = NULL, *realfile = NULL;
evas_object_show(sd->o_img);
realfile = ecore_file_realpath(sd->file);
if (!strncasecmp(sd->file, "file:/", 6))
{
Efreet_Uri *uri = efreet_uri_decode(sd->file);
if (uri)
{
realfile = ecore_file_realpath(uri->path);
efreet_uri_free(uri);
}
}
else if ((!strncasecmp(sd->file, "http:/", 6)) ||
(!strncasecmp(sd->file, "https:/", 7)))
realfile = strdup(sd->file);
else
realfile = ecore_file_realpath(sd->file);
if (realfile)
{
thumb = albumart_file_get(realfile);

@ -376,7 +376,7 @@ videothumb_file_set(Evas_Object *obj, const char *file, double pos)
Efreet_Uri *uri = efreet_uri_decode(sd->file);
if (uri)
{
sd->realpath = strdup(uri->path);
sd->realpath = ecore_file_realpath(uri->path);
efreet_uri_free(uri);
}
}

Loading…
Cancel
Save