Remove unused privilege and warnings
authorrahul varna <rahul.varna@samsung.com>
Thu, 21 Mar 2013 08:43:11 +0000 (17:43 +0900)
committerrahul varna <rahul.varna@samsung.com>
Thu, 21 Mar 2013 08:43:11 +0000 (17:43 +0900)
Signed-off-by: rahul varna <rahul.varna@samsung.com>
project/manifest.xml
project/src/Recorder/AudioRecorderForm.cpp
project/src/Recorder/VideoRecorderForm.cpp

index ee16bce..5155281 100644 (file)
     <Apps>
         <ApiVersion>2.1</ApiVersion>
         <Privileges>
-            <Privilege>http://tizen.org/privilege/useridentity</Privilege>
             <Privilege>http://tizen.org/privilege/audiorecorder</Privilege>
-            <Privilege>http://tizen.org/privilege/alarm</Privilege>
             <Privilege>http://tizen.org/privilege/videorecorder</Privilege>
             <Privilege>http://tizen.org/privilege/camera</Privilege>
             <Privilege>http://tizen.org/privilege/power</Privilege>
-            <Privilege>http://tizen.org/privilege/setting</Privilege>
         </Privileges>
         <UiApp HwAcceleration="On" Main="True" MenuIconVisible="True" Name="$(projectName)">
             <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="480"/>
index 8ed56fd..b530d35 100644 (file)
@@ -66,7 +66,6 @@ static const int INIT = -1;
 static int _CONTEXT_MENU_Y = 700;
 static const int ENABLE_AUDIO_STREAM = 0;
 static const int DISABLE_AUDIO_STREAM = 1;
-static const int SHORT_MAX = 256;
 
 static const String SECTION = L"AudioRecorder";
 static const String KEY_QUALITY = L"quality";
index bead169..3017b3a 100644 (file)
@@ -74,7 +74,6 @@ static const int VR_FORM_LISTVIEW_H  = 250;
 static const int MIN_THREAD_SLEEP_TIME = 200;
 static const int ENABLE_AUDIO_STREAM = 0;
 static const int DISABLE_AUDIO_STREAM = 1;
-static const int SHORT_MAX = 256;
 
 static const String FORM_ID = L"VideoRecorderForm";
 extern const Tizen::Ui::Scenes::SceneId VIDEO_RECORDER_SCENE_ID = L"VideoRecorderScene";
@@ -436,7 +435,7 @@ VideoRecorderForm::ProcessVideoStream(VideoFrame &frame)
                break;
                case VIDEO_PLANE_TYPE_U:
                {
-                       pUBuffer = frame.GetPlaneData(i)->GetPointer();
+                       pUBuffer = const_cast<byte*>(frame.GetPlaneData(i)->GetPointer());
                        TryReturnVoid(pUBuffer != null, "Plane U data returned null");
 
                        uvSize = frame.GetPlaneData(i)->GetCapacity();
@@ -445,7 +444,7 @@ VideoRecorderForm::ProcessVideoStream(VideoFrame &frame)
                break;
                case VIDEO_PLANE_TYPE_V:
                {
-                       pVBuffer = frame.GetPlaneData(i)->GetPointer();
+                       pVBuffer = const_cast<byte*>(frame.GetPlaneData(i)->GetPointer());
                        TryReturnVoid(pVBuffer != null, "Plane U data returned null");
                }
                break;
@@ -454,7 +453,7 @@ VideoRecorderForm::ProcessVideoStream(VideoFrame &frame)
                        uvSize = frame.GetPlaneData(i)->GetCapacity();
                        TryReturnVoid(uvSize != 0, "Plane U data size is 0");
 
-                       pUBuffer = frame.GetPlaneData(i)->GetPointer();
+                       pUBuffer = const_cast<byte*>(frame.GetPlaneData(i)->GetPointer());
                        TryReturnVoid(pUBuffer != null, "Plane U data returned null");
                }
                break;
@@ -463,7 +462,7 @@ VideoRecorderForm::ProcessVideoStream(VideoFrame &frame)
                        uvSize = frame.GetPlaneData(i)->GetCapacity();
                        TryReturnVoid(uvSize != 0, "Plane U data size is 0");
 
-                       pUBuffer = frame.GetPlaneData(i)->GetPointer();
+                       pUBuffer = const_cast<byte*>(frame.GetPlaneData(i)->GetPointer());
                        TryReturnVoid(pUBuffer != null, "Plane U data returned null");
                }
                break;