forked from enlightenment/efl
edje: let's not reopen the file for nothing.
This commit is contained in:
parent
fd8cb707b9
commit
e2da515e72
|
@ -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
|
// use eet_read_direct to avoid duplicating/copying into memory
|
||||||
// by relying on a direct mmap, but this means we need to close
|
// by relying on a direct mmap, but this means we need to close
|
||||||
// the eet file handle instead of freeing data
|
// 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)
|
if (!eet_data->ef)
|
||||||
{
|
{
|
||||||
ERR("Cannot open edje file '%s' for samples", ed->path);
|
ERR("Cannot open edje file '%s' for samples", ed->path);
|
||||||
|
|
Loading…
Reference in New Issue