Update change log and spec for wrt-plugins-tizen_0.2.71
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Mediacontent / JSMediacontent.cpp
index 3141372..bad5baa 100755 (executable)
@@ -404,13 +404,13 @@ JSValueRef JSMediacontent::findItems(
                {
                        long count = filterConverter->toLong(arguments[5]);
 
-                       if(count > 0)
+                       if(count > 0.0)
                        {
                                dplEvent->setLimit(count);
                        }
-                       else if ( count == 0)
+                       else if ( count == 0.0)
                        {
-                               dplEvent->setLimit(-1); // -1 is all row.
+                               dplEvent->setLimit(-1);
                        }
                        else
                        {
@@ -423,13 +423,13 @@ JSValueRef JSMediacontent::findItems(
                if(argumentCount >= 7)  //optional unsigned long? offset
                {
                        long offset = filterConverter->toLong(arguments[6]);
-                       if(offset != 0)
+                       if(offset != 0.0)
                        {
                                dplEvent->setOffset(offset);
                        }
                        else
                        {
-                               dplEvent->setOffset(0); 
+                               dplEvent->setOffset(-1);
                        }
                }               
         dplEvent->setPrivateData( DPL::StaticPointerCast<IEventPrivateData> (cbm));