-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from hao-yao/icamerasrc_slim_api
Engineer release on 2023-04-03
- Loading branch information
Showing
4 changed files
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* GStreamer | ||
* Copyright (C) 2005 Thomas Vander Stichele <[email protected]> | ||
* Copyright (C) 2005 Ronald S. Bultje <[email protected]> | ||
* Copyright (C) 2015-2021 Intel Corporation | ||
* Copyright (C) 2015-2023 Intel Corporation | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the "Software"), | ||
|
@@ -980,7 +980,7 @@ gst_camerasrc_class_init (GstcamerasrcClass * klass) | |
gst_camerasrc_device_id_get_type(), DEFAULT_PROP_DEVICE_ID, (GParamFlags)(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); | ||
|
||
g_object_class_install_property(gobject_class,PROP_NUM_VC, | ||
g_param_spec_int("num-vc","Number Virtual Channel","Number of enabled Virtual Channel", | ||
g_param_spec_int("num-vc","Number Virtual Channel","Number of enabled Virtual Channel: 0 is mean disable VC", | ||
0,8,0, (GParamFlags)(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); | ||
|
||
g_object_class_install_property(gobject_class,PROP_DEBUG_LEVEL, | ||
|
@@ -2836,11 +2836,7 @@ gst_camerasrc_start(GstCamBaseSrc *basesrc) | |
return FALSE; | ||
} | ||
camerasrc->camera_init = true; | ||
#ifndef STRIP_VIRTUAL_CHANNEL_CAMHAL | ||
ret = camera_device_open(camerasrc->device_id, camerasrc->num_vc); | ||
#else | ||
ret = camera_device_open(camerasrc->device_id); | ||
#endif | ||
if (ret < 0) { | ||
GST_ERROR("CameraId=%d failed to open libcamhal device.", camerasrc->device_id); | ||
camerasrc->camera_open = false; | ||
|