kayasink: use scan function that works on older versions of Vision Point
This commit is contained in:
parent
d8f21e3852
commit
87c25c9175
@ -357,7 +357,7 @@ gst_kayasink_start (GstBaseSink * basesink)
|
|||||||
GST_DEBUG_OBJECT (sink, "Starting");
|
GST_DEBUG_OBJECT (sink, "Starting");
|
||||||
|
|
||||||
/* find and list all KAYA interfaces */
|
/* find and list all KAYA interfaces */
|
||||||
ret = KY_DeviceScan (&num_ifaces);
|
num_ifaces = KYFG_Scan (NULL, 0);
|
||||||
if (num_ifaces == 0) {
|
if (num_ifaces == 0) {
|
||||||
GST_ELEMENT_ERROR (sink, LIBRARY, FAILED, ("No KAYA interfaces found"),
|
GST_ELEMENT_ERROR (sink, LIBRARY, FAILED, ("No KAYA interfaces found"),
|
||||||
(NULL));
|
(NULL));
|
||||||
@ -587,8 +587,8 @@ gst_kayasink_set_kaya_caps (GstKayaSink * sink, GstCaps * caps)
|
|||||||
default:
|
default:
|
||||||
GST_ELEMENT_ERROR (sink, LIBRARY, FAILED,
|
GST_ELEMENT_ERROR (sink, LIBRARY, FAILED,
|
||||||
("Unsupported pixel format: %s.",
|
("Unsupported pixel format: %s.",
|
||||||
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (&sink->
|
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT
|
||||||
vinfo))), (NULL));
|
(&sink->vinfo))), (NULL));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user