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

This commit is contained in:
Carsten Haitzler 2015-04-10 09:41:09 +09:00
parent 92079ca855
commit 6cd663edfc
3 changed files with 16 additions and 3 deletions

2
README
View File

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

View File

@ -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])

View File

@ -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);
}