edje_pick: set the correct file name for copied sample
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>
Tue, 9 Aug 2016 11:22:39 +0000 (14:22 +0300)
committerVyacheslav Reutskiy <v.reutskiy@samsung.com>
Tue, 9 Aug 2016 11:27:47 +0000 (14:27 +0300)
@fix

src/bin/edje/edje_pick.c

index 4082291..90375dc 100644 (file)
@@ -912,13 +912,13 @@ _edje_pick_sounds_add(Edje_File *edf)
              Edje_Sound_Sample *sample = &edf->sound_dir->samples[k];
 
              snprintf(buf, sizeof(buf), "edje/sounds/%i", sample->id);
-             VERBOSE(EINA_LOG_INFO("Trying to read <%s>\n", sample->name));
+             VERBOSE(EINA_LOG_INFO("Trying to read <%s>\n", sample->snd_src));
 
              data = eet_read(edf->ef, buf, &size);
              if (size)
                {
                   Edje_Pick_Data *smpl = malloc(sizeof(*smpl));
-                  smpl->filename = eina_stringshare_add(sample->name);
+                  smpl->filename = eina_stringshare_add(sample->snd_src);
                   smpl->data = data;
                   smpl->size = size;
                   smpl->entry = (void *) sample; /* for output file sound dir */