Edje_Edit: replace eet_read_direct by eet_read function.

eet_read_direct function doesn't works with ciphered data, but it is
possible that edje file was ciphered. In this case data, that returned
by eet_read_direct always will be NULL.
This commit is contained in:
Mykyta Biliavskyi 2016-12-22 11:18:19 +02:00
parent 3425ad2abd
commit 82b80212c6
1 changed files with 1 additions and 1 deletions

View File

@ -1587,7 +1587,7 @@ edje_edit_sound_samplebuffer_get(Evas_Object *obj, const char *sample_name)
if (!ef)
return NULL;
snprintf(snd_id_str, sizeof(snd_id_str), "edje/sounds/%i", sample->id);
data = eet_read_direct(ef, snd_id_str, &len);
data = eet_read(ef, snd_id_str, &len);
if (len <= 0)
{
ERR("Sample from edj file '%s' has 0 length", ed->path);