From: Jeongmo Yang Date: Fri, 6 Nov 2020 05:01:17 +0000 (+0900) Subject: Set device type as camera id in case of network camera X-Git-Tag: accepted/tizen/unified/20201109.123503^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F247014%2F1;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Set device type as camera id in case of network camera [Version] 0.10.226 [Issue Type] Update Change-Id: I5301c47bd34f6f87e1a9bc27066e904621fdb8af Signed-off-by: Jeongmo Yang --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 1863d5b..6befc9b 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.225 +Version: 0.10.226 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_gstcommon.c b/src/mm_camcorder_gstcommon.c index 87eff91..9606dbf 100755 --- a/src/mm_camcorder_gstcommon.c +++ b/src/mm_camcorder_gstcommon.c @@ -585,11 +585,15 @@ int _mmcamcorder_create_preview_elements(MMHandleType handle) _mmcamcorder_conf_set_value_element_property(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, VideosrcElement); /* Set video device index */ + if (hcamcorder->is_network) { + MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "camera-id", hcamcorder->device_type); + } else { #ifdef _MMCAMCORDER_CAMERA_CONF_MGR_SUPPORT - MMCAMCORDER_G_OBJECT_SET_POINTER(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "device-name", hcamcorder->conf_device_info.node); + MMCAMCORDER_G_OBJECT_SET_POINTER(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "device-name", hcamcorder->conf_device_info.node); #else - MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "camera-id", input_index->default_value); + MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSRC_SRC].gst, "camera-id", input_index->default_value); #endif + } /* set user buffer fd to videosrc element */ if (hcamcorder->support_user_buffer) {