about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedgstbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedgstbase.c')
-rw-r--r--src/wrapped/wrappedgstbase.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/src/wrapped/wrappedgstbase.c b/src/wrapped/wrappedgstbase.c
index 495357dc..b3d85b35 100644
--- a/src/wrapped/wrappedgstbase.c
+++ b/src/wrapped/wrappedgstbase.c
@@ -229,29 +229,18 @@ EXPORT void my_gst_collect_pads_set_buffer_function(x64emu_t* emu, void* pads, v
     if(box64_nogtk) \
         return -1;
 
+#define CUSTOM_INIT \
+    SetGstBaseTransformID(my->gst_base_transform_get_type());\
+    SetGstBaseSinkID(my->gst_base_sink_get_type());\
+    SetGstAggregatorID(my->gst_aggregator_get_type());\
+    SetGstPushSrcID(my->gst_push_src_get_type());\
+    SetGstBaseSrcID(my->gst_base_src_get_type());\
+    SetGstAggregatorPadID(my->gst_aggregator_pad_get_type());
+
 #ifdef ANDROID
-    #define CUSTOM_INIT \
-        getMy(lib);     \
-        SetGstBaseTransformID(my->gst_base_transform_get_type());\
-        SetGstBaseSinkID(my->gst_base_sink_get_type());\
-        SetGstAggregatorID(my->gst_aggregator_get_type());\
-        SetGstPushSrcID(my->gst_push_src_get_type());\
-        SetGstBaseSrcID(my->gst_base_src_get_type());\
-        SetGstAggregatorPadID(my->gst_aggregator_pad_get_type());\
-        setNeededLibs(lib, 1, "libgstreamer-1.0.so");
+#define NEEDED_LIBS "libgstreamer-1.0.so"
 #else
-    #define CUSTOM_INIT \
-        getMy(lib);     \
-        SetGstBaseTransformID(my->gst_base_transform_get_type());\
-        SetGstBaseSinkID(my->gst_base_sink_get_type());\
-        SetGstAggregatorID(my->gst_aggregator_get_type());\
-        SetGstPushSrcID(my->gst_push_src_get_type());\
-        SetGstBaseSrcID(my->gst_base_src_get_type());\
-        SetGstAggregatorPadID(my->gst_aggregator_pad_get_type());\
-        setNeededLibs(lib, 1, "libgstreamer-1.0.so.0");
+#define NEEDED_LIBS "libgstreamer-1.0.so.0"
 #endif
 
-#define CUSTOM_FINI \
-    freeMy();
-
 #include "wrappedlib_init.h"