Bugfix - directvideosink settings and add exception case without resource manager...
[platform/core/multimedia/libmm-camcorder.git] / src / mm_camcorder_attribute.c
index 719c0fe..39c3ac4 100644 (file)
@@ -2636,7 +2636,7 @@ bool _mmcamcorder_commit_camera_ptz_type(MMHandleType handle, int attr_idx, cons
                for (item = controls ; item && item->data ; item = item->next) {
                        CameraControlChannel = item->data;
                        _mmcam_dbg_log("CameraControlChannel->label %s", CameraControlChannel->label);
-                       if (!strcmp(CameraControlChannel->label, "ptz")) {
+                       if (!strcmp(CameraControlChannel->label, "ptz_type")) {
                                if (gst_camera_control_set_value(CameraControl, CameraControlChannel, value->value.i_val)) {
                                        _mmcam_dbg_warn("set ptz type %d done", value->value.i_val);
                                        return TRUE;
@@ -2647,7 +2647,7 @@ bool _mmcamcorder_commit_camera_ptz_type(MMHandleType handle, int attr_idx, cons
                        }
                }
 
-               _mmcam_dbg_warn("failed to find tilt control channel");
+               _mmcam_dbg_warn("failed to find ptz type control channel");
        }
 
        return FALSE;
@@ -3985,7 +3985,8 @@ bool _mmcamcorder_commit_display_geometry_method(MMHandleType handle, int attr_i
        }
 
        if (!strcmp(videosink_name, "xvimagesink") || !strcmp(videosink_name, "tizenwlsink") ||
-           !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "evasimagesink")) {
+           !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "evasimagesink") ||
+           !strcmp(videosink_name, "directvideosink")) {
                method = value->value.i_val;
                MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSINK_SINK].gst, "display-geometry-method", method);
        } else {
@@ -4030,7 +4031,7 @@ bool _mmcamcorder_commit_display_rect(MMHandleType handle, int attr_idx, const M
        }
 
        if (!strcmp(videosink_name, "xvimagesink") || !strcmp(videosink_name, "tizenwlsink") ||
-           !strcmp(videosink_name, "evaspixmapsink")) {
+           !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "directvideosink")) {
                int rect_x = 0;
                int rect_y = 0;
                int rect_width = 0;
@@ -4739,7 +4740,12 @@ bool _mmcamcorder_set_attribute_to_camsensor2(MMHandleType handle)
        unsigned int i = 0;
        int ret = TRUE;
        int attr_idxs[] = {
-               MM_CAM_STROBE_MODE
+               MM_CAM_STROBE_MODE,
+               MM_CAM_CAMERA_PTZ_TYPE,
+               MM_CAM_CAMERA_PAN_MECHA,
+               MM_CAM_CAMERA_PAN_ELEC,
+               MM_CAM_CAMERA_TILT_MECHA,
+               MM_CAM_CAMERA_TILT_ELEC
        };
 
        mmf_return_val_if_fail(hcamcorder, FALSE);