From f23839885151ea3b4a9820a683ee82286b36f3bc Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 18 Jul 2018 15:17:18 -0400 Subject: [PATCH] kayasrc: xml file existence bug fix --- sys/kaya/gstkayasrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kaya/gstkayasrc.c b/sys/kaya/gstkayasrc.c index 4ac076d..cee2521 100644 --- a/sys/kaya/gstkayasrc.c +++ b/sys/kaya/gstkayasrc.c @@ -461,7 +461,7 @@ gst_kayasrc_start (GstBaseSrc * bsrc) } GST_DEBUG_OBJECT (src, "About to open camera at index %d", src->device_index); if (src->xml_file && strlen (src->xml_file) > 0) { - if (!g_file_test (src->project_file, G_FILE_TEST_EXISTS)) { + if (!g_file_test (src->xml_file, G_FILE_TEST_EXISTS)) { GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, ("XML file specified does not exist: %s", src->xml_file), (NULL)); goto error;