raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=5d4705929127d2b09114f27db0fda563d9e69118

commit 5d4705929127d2b09114f27db0fda563d9e69118
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Nov 15 00:51:14 2015 +0900

    rage - dont flip image in videothumb if poster is loaded
    
    this saves a bit of cpu idling away on still images...
---
 src/bin/videothumb.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/videothumb.c b/src/bin/videothumb.c
index 6a16e09..0ac3dd7 100644
--- a/src/bin/videothumb.c
+++ b/src/bin/videothumb.c
@@ -22,6 +22,7 @@ struct _Videothumb
    Evas_Coord w, h;
    Eina_Bool seen : 1;
    Eina_Bool poster_mode : 1;
+   Eina_Bool poster : 1;
 };
 
 static Evas_Smart *_smart = NULL;
@@ -253,6 +254,7 @@ _videothumb_image_load(Evas_Object *obj)
              if (ecore_file_exists(artfile))
                {
                   sd->realfile = eina_stringshare_add(artfile);
+                  sd->poster = EINA_TRUE;
                   found = EINA_TRUE;
                }
              free(artfile);
@@ -529,6 +531,11 @@ _cb_cycle(void *data)
 {
    Evas_Object *obj = data;
    Videothumb *sd = evas_object_smart_data_get(obj);
+   if (sd->poster)
+     {
+        sd->cycle_timer = NULL;
+        return EINA_FALSE;
+     }
    sd->pos += 10.0;
    if (!sd->thumb_exe)
      {

-- 


Reply via email to