elm test: image zoomable - allow gif to be played in test example
authorAmitesh Singh <amitesh.sh@samsung.com>
Thu, 29 Jun 2017 02:56:48 +0000 (11:56 +0900)
committerAmitesh Singh <amitesh.sh@samsung.com>
Thu, 29 Jun 2017 02:56:48 +0000 (11:56 +0900)
play gif file if its selected through file selector

elm test -> photocam -> select photo -> {select any gif anim file}

src/bin/elementary/test_photocam.c

index 0fcb4d5..5d8564f 100644 (file)
@@ -149,6 +149,10 @@ my_bt_open(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
 
         eina_list_free(grps);
      }
+
+   if (file && eina_str_has_extension(file, ".gif")
+       && efl_player_playable_get(ph))
+     efl_player_play_set(ph, EINA_TRUE);
 }
 
 static void