From b1552493a43438f6c3f9287520ebe75a8b078d37 Mon Sep 17 00:00:00 2001 From: Jaeyun Date: Mon, 22 Apr 2019 19:09:13 +0900 Subject: [PATCH] [Orc] remove unnecessary code We don't need to init orc functions. It will be called when creating new orc program. Signed-off-by: Jaeyun Jung --- gst/nnstreamer/nnstreamer.c | 9 --------- gst/nnstreamer/tensor_common.h | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gst/nnstreamer/nnstreamer.c b/gst/nnstreamer/nnstreamer.c index 2157d55..c10cc45 100644 --- a/gst/nnstreamer/nnstreamer.c +++ b/gst/nnstreamer/nnstreamer.c @@ -48,10 +48,6 @@ #include #include -#ifdef HAVE_ORC -#include -#endif - #define NNSTREAMER_PLUGIN(name) \ extern gboolean G_PASTE(nnstreamer_export_, name) (GstPlugin *plugin) @@ -81,11 +77,6 @@ NNSTREAMER_PLUGIN (tensor_reposrc); static gboolean gst_nnstreamer_init (GstPlugin * plugin) { -#ifdef HAVE_ORC - GST_INFO ("[NNStreamer] Initialize the Orc library"); - orc_init (); -#endif - NNSTREAMER_INIT (tensor_converter, plugin); NNSTREAMER_INIT (tensor_aggregator, plugin); NNSTREAMER_INIT (tensor_decoder, plugin); diff --git a/gst/nnstreamer/tensor_common.h b/gst/nnstreamer/tensor_common.h index 4a6782e..21baae7 100644 --- a/gst/nnstreamer/tensor_common.h +++ b/gst/nnstreamer/tensor_common.h @@ -38,7 +38,7 @@ #include "nnstreamer_plugin_api.h" #ifdef HAVE_ORC -#include +#include #define nns_memcpy(d,s,n) do { \ if ((n) > 100) orc_memcpy ((d), (s), (n)); \ -- 2.7.4