kayasrc: don't close framegrabber prematurely
If we have two cameras open on the same interface
This commit is contained in:
parent
01a59a2aa0
commit
5baad42603
@ -515,8 +515,6 @@ gst_kayasrc_start (GstBaseSrc * bsrc)
|
|||||||
GST_DEBUG_OBJECT (src, "Found %d cameras connected",
|
GST_DEBUG_OBJECT (src, "Found %d cameras connected",
|
||||||
src->fg_data->num_cams);
|
src->fg_data->num_cams);
|
||||||
if (src->fg_data->num_cams == 0) {
|
if (src->fg_data->num_cams == 0) {
|
||||||
KYFG_Close (src->fg_data->fg_handle);
|
|
||||||
src->fg_data->fg_handle = INVALID_FGHANDLE;
|
|
||||||
g_mutex_unlock (&src->fg_data->fg_mutex);
|
g_mutex_unlock (&src->fg_data->fg_mutex);
|
||||||
GST_ELEMENT_ERROR (src, LIBRARY, FAILED,
|
GST_ELEMENT_ERROR (src, LIBRARY, FAILED,
|
||||||
("Failed to detect any cameras on interface"), (NULL));
|
("Failed to detect any cameras on interface"), (NULL));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user