forked from enlightenment/enlightenment
don't know about you.. but video thumbnails do work - i'm staring at
them right here. a whole window full of them. they take longer to gen than images - but they work. evas_generic_loaders load them and gen them if u have gstreamer support etc. sure - they are slower, but they work. only thing we don't have is a timeout for a slow generic loader. should add that to evas. SVN revision: 76963
This commit is contained in:
parent
eec8553b5f
commit
5349fd4bbb
|
@ -2152,24 +2152,6 @@ e_fm2_icon_get(Evas *evas, E_Fm2_Icon *ic,
|
|||
if (o) return o;
|
||||
}
|
||||
|
||||
|
||||
if (ic->info.mime)
|
||||
{
|
||||
if (!strncasecmp(ic->info.mime, "video/", 6))
|
||||
ic->thumb_failed = EINA_TRUE;
|
||||
}
|
||||
else if (eina_str_has_extension(ic->info.file, ".avi") ||
|
||||
eina_str_has_extension(ic->info.file, ".mpg") ||
|
||||
eina_str_has_extension(ic->info.file, ".mpeg") ||
|
||||
eina_str_has_extension(ic->info.file, ".mkv")
|
||||
)
|
||||
ic->thumb_failed = EINA_TRUE;
|
||||
else if (ic->info.statinfo.st_size >= (ic->sd->config->icon.max_thumb_size ?: 5) * 1024 * 1024)
|
||||
/* block movie thumbnails, which we can't do, and large file previews,
|
||||
* which we won't do
|
||||
*/
|
||||
ic->thumb_failed = EINA_TRUE;
|
||||
|
||||
/* create thumbnails for edje files */
|
||||
if (_e_fm2_file_is_edje(ic->info.file))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue