Skip to content

Commit

Permalink
[MM] Set network camera option
Browse files Browse the repository at this point in the history
 - Disable network camera option.
@discussion: Get `is_network` prop?

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
  • Loading branch information
gichan-jang authored and myungjoo committed Oct 23, 2024
1 parent 681b884 commit f5b00af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion c/src/ml-api-inference-tizen-privilege-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ ml_tizen_mm_replace_element (gboolean has_video, gboolean has_audio,
gchar ** description)
{
MMHandleType hcam = NULL;
MMCamPreset cam_info;
MMCamPreset cam_info = { 0 };
gchar *_video = NULL; /* Do not free this! */
gchar *_audio = NULL; /* Do not free this! */
guint changed = 0;
Expand All @@ -993,6 +993,10 @@ ml_tizen_mm_replace_element (gboolean has_video, gboolean has_audio,
/* create camcoder handle (primary camera) */
if (has_video) {
cam_info.videodev_type = MM_VIDEO_DEVICE_CAMERA0;
/**
* @note Now network camera is disabled. (cam_info.reserved[0] = 0)
* If we need to set net-camera later, discuss with MM team.
*/
} else {
/* no camera */
cam_info.videodev_type = MM_VIDEO_DEVICE_NONE;
Expand Down

0 comments on commit f5b00af

Please sign in to comment.