edje: let's not reopen the file for nothing.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 10 May 2013 02:39:55 +0000 (11:39 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 10 May 2013 05:30:44 +0000 (14:30 +0900)
src/lib/edje/edje_multisense.c

index 15400b3..5a1981a 100644 (file)
@@ -122,7 +122,7 @@ _edje_multisense_internal_sound_sample_play(Edje *ed, const char *sample_name, c
             // use eet_read_direct to avoid duplicating/copying into memory
             // by relying on a direct mmap, but this means we need to close
             // the eet file handle instead of freeing data
-            eet_data->ef = eet_open(ed->path, EET_FILE_MODE_READ);
+            eet_data->ef = eet_mmap(ed->file->f, EET_FILE_MODE_READ);
             if (!eet_data->ef)
               {
                  ERR("Cannot open edje file '%s' for samples", ed->path);