do a rage 0.1.2 to fix thumb generation due to uri encodings

v-0.4.0
Carsten Haitzler 8 years ago
parent 92079ca855
commit 6cd663edfc
  1. 2
      README
  2. 2
      configure.ac
  3. 15
      src/bin/videothumb.c

@ -1,4 +1,4 @@
Rage 0.1.0
Rage 0.1.2
******************************************************************************

@ -1,7 +1,7 @@
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT([rage], [0.1.1], [enlightenment-devel@lists.sourceforge.net])
AC_INIT([rage], [0.1.2], [enlightenment-devel@lists.sourceforge.net])
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])

@ -371,7 +371,20 @@ videothumb_file_set(Evas_Object *obj, const char *file, double pos)
if ((sd->file == file) && (sd->pos == pos)) return;
if (sd->file) eina_stringshare_del(sd->file);
sd->file = eina_stringshare_add(file);
sd->realpath = ecore_file_realpath(sd->file);
if (!strncasecmp(sd->file, "file:/", 6))
{
Efreet_Uri *uri = efreet_uri_decode(sd->file);
if (uri)
{
sd->realpath = strdup(uri->path);
efreet_uri_free(uri);
}
}
else if ((!strncasecmp(sd->file, "http:/", 6)) ||
(!strncasecmp(sd->file, "https:/", 7)))
sd->realpath = strdup(sd->file);
else
sd->realpath = ecore_file_realpath(sd->file);
sd->pos = pos;
_videothumb_eval(obj, EINA_TRUE);
}

Loading…
Cancel
Save