edje: let's not reopen the file for nothing.

This commit is contained in:
Cedric Bail 2013-05-10 11:39:55 +09:00
parent fd8cb707b9
commit e2da515e72
1 changed files with 1 additions and 1 deletions

View 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);