diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-02-10 15:06:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-10 15:06:08 +0100 |
| commit | b527ebbf5be0949df3b9dcf0806109acc8119476 (patch) | |
| tree | d9687f665b8e3a1facc15be822463bf7d274dacd /src/wrapped/wrappedgstvideo.c | |
| parent | ad55cfde7f61395618991543694b35183f9c6ad7 (diff) | |
| download | box64-b527ebbf5be0949df3b9dcf0806109acc8119476.tar.gz box64-b527ebbf5be0949df3b9dcf0806109acc8119476.zip | |
Wrapped libraries refactor (#1257)
* [MISC] Removed a warning caused by tab/space mismatch * [WRAPPED] Factored out `getMy` and `freeMy` calls * [WRAPPED] Small cleanup of the init header * [WRAPPED] Factored out `SETALT` * [WRAPPED] Factored out needed libs
Diffstat (limited to 'src/wrapped/wrappedgstvideo.c')
| -rw-r--r-- | src/wrapped/wrappedgstvideo.c | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/wrapped/wrappedgstvideo.c b/src/wrapped/wrappedgstvideo.c index ef63ce4c..37538d35 100644 --- a/src/wrapped/wrappedgstvideo.c +++ b/src/wrapped/wrappedgstvideo.c @@ -46,29 +46,18 @@ typedef size_t (*LFv_t)(); if(box64_nogtk) \ return -1; +#define CUSTOM_INIT \ + SetGstVideoDecoderID(my->gst_video_decoder_get_type());\ + SetGstVideoEncoderID(my->gst_video_encoder_get_type());\ + SetGstVideoSinkID(my->gst_video_sink_get_type());\ + SetGstVideoAggregatorID(my->gst_video_aggregator_get_type());\ + SetGstVideoAggregatorPadID(my->gst_video_aggregator_pad_get_type());\ + SetGstVideoFilterID(my->gst_video_filter_get_type()); + #ifdef ANDROID - #define CUSTOM_INIT \ - getMy(lib); \ - SetGstVideoDecoderID(my->gst_video_decoder_get_type());\ - SetGstVideoEncoderID(my->gst_video_encoder_get_type());\ - SetGstVideoSinkID(my->gst_video_sink_get_type());\ - SetGstVideoAggregatorID(my->gst_video_aggregator_get_type());\ - SetGstVideoAggregatorPadID(my->gst_video_aggregator_pad_get_type());\ - SetGstVideoFilterID(my->gst_video_filter_get_type());\ - setNeededLibs(lib, 1, "libgstreamer-1.0.so"); +#define NEEDED_LIBS "libgstreamer-1.0.so" #else - #define CUSTOM_INIT \ - getMy(lib); \ - SetGstVideoDecoderID(my->gst_video_decoder_get_type());\ - SetGstVideoEncoderID(my->gst_video_encoder_get_type());\ - SetGstVideoSinkID(my->gst_video_sink_get_type());\ - SetGstVideoAggregatorID(my->gst_video_aggregator_get_type());\ - SetGstVideoAggregatorPadID(my->gst_video_aggregator_pad_get_type());\ - SetGstVideoFilterID(my->gst_video_filter_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" |