edje_cc - fix inheritance of programs and store channel too in copy
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 6 Aug 2016 10:10:24 +0000 (19:10 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 6 Aug 2016 10:10:24 +0000 (19:10 +0900)
this fixes programs that inherit and play audio on specific channels.
i found that sound worked on single line entries but not multipline
beause single line inherit from multi but didnt copy this program
param - the channel number. this fixes this

@fix

src/bin/edje/edje_cc_handlers.c

index de5b138..e8cc12e 100644 (file)
@@ -2048,6 +2048,7 @@ _edje_program_copy(Edje_Program *ep, Edje_Program *ep2)
    ep->tone_name = STRDUP(ep2->tone_name);
    ep->duration = ep2->duration;
    ep->speed = ep2->speed;
+   ep->channel = ep2->channel;
 
    EINA_LIST_FOREACH(ep2->targets, l, et2)
      {