Bugfix of nnstreamer_conf internal API
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 29 Jan 2019 09:04:30 +0000 (18:04 +0900)
committerwooksong <wook16.song@samsung.com>
Wed, 30 Jan 2019 06:23:51 +0000 (15:23 +0900)
- Fix exported name of nnsconf_loadconf (typo)
- Fix incorrect enums of subplugin_prefixes (typo)

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/nnstreamer/nnstreamer_conf.c

index d5c913f..100b5db 100644 (file)
@@ -201,7 +201,7 @@ _fill_in_vstr (gchar *** fullpath_vstr, gchar *** basename_vstr,
 
 /** @brief Public function defined in the header */
 gboolean
-nnstreamer_loadconf (gboolean force_reload)
+nnsconf_loadconf (gboolean force_reload)
 {
   g_autoptr (GError) error = NULL;
   g_autoptr (GKeyFile) key_file = NULL;
@@ -320,8 +320,8 @@ nnsconf_get_fullpath_fromfile (const gchar * file2find, nnsconf_type type)
 }
 
 const gchar *subplugin_prefixes[NNSCONF_END] = {
-  [NNSCONF_FILTERS] = NNSTREAMER_PREFIX_DECODER,
-  [NNSCONF_DECODERS] = NNSTREAMER_PREFIX_FILTER,
+  [NNSCONF_FILTERS] = NNSTREAMER_PREFIX_FILTER,
+  [NNSCONF_DECODERS] = NNSTREAMER_PREFIX_DECODER,
   [NNSCONF_CUSTOM_FILTERS] = NNSTREAMER_PREFIX_CUSTOMFILTERS,
   NULL,
 };