seoz pushed a commit to branch master.

commit 73cab19a7861c62544f37d9e81d7f03551559732
Author: Jaehyun Cho <[email protected]>
Date:   Wed Aug 28 07:40:12 2013 +0900

    [edje_embryo] Fix play_sample's parameter count check
    
    play_sample function requires 2 parameters however it checks parameter 
count as 1.
---
 ChangeLog                  | 4 ++++
 NEWS                       | 1 +
 src/lib/edje/edje_embryo.c | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index f27fc70..654dbdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-27  Jaehyun Cho
+
+    * Fix edje play sample parameter checking.
+
 2013-08-27  Tom Hacohen
 
        * Evas bidi: Fixed a bug causing BiDi not to work in some cases.
diff --git a/NEWS b/NEWS
index e4fa3d0..8a15496 100644
--- a/NEWS
+++ b/NEWS
@@ -129,6 +129,7 @@ Additions:
      - Add threshold support to Edje draggable part.
      - Reduce load time of Edje_Object using Evas_Object_Textblock and many 
styles.
      - Add edje_object_mmap_set.
+     - Fix play sample parameter checking.
     * Eeze:
      - Add a dummy libmount replacement for when libmount is not there.
     * Ecore_Con:
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index 5a7b6e2..b9686af 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -900,7 +900,7 @@ _edje_embryo_fn_play_sample(Embryo_Program *ep, Embryo_Cell 
*params)
    char *sample_name = NULL;
    float speed = 1.0;
 
-   CHKPARAM(1);
+   CHKPARAM(2);
    ed = embryo_program_data_get(ep);
    GETSTR(sample_name, params[1]);
    if ((!sample_name)) return 0;

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Reply via email to