diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-04-03 17:06:01 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-04-03 17:06:01 +0200 |
| commit | d206d69b25d3549502b39b83d01d1df576c22d66 (patch) | |
| tree | 0e30293502ae5640c081f20c92f04ed2dcd57a77 /src/wrapped/wrappedgstreamer.c | |
| parent | 83e92d6298f3be3833b8cd844b97597d41e22265 (diff) | |
| download | box64-d206d69b25d3549502b39b83d01d1df576c22d66.tar.gz box64-d206d69b25d3549502b39b83d01d1df576c22d66.zip | |
Wrapped 2 more functionto gstreamer-1.0 (for #1397)
Diffstat (limited to 'src/wrapped/wrappedgstreamer.c')
| -rw-r--r-- | src/wrapped/wrappedgstreamer.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/wrapped/wrappedgstreamer.c b/src/wrapped/wrappedgstreamer.c index 93adcd7f..de486475 100644 --- a/src/wrapped/wrappedgstreamer.c +++ b/src/wrapped/wrappedgstreamer.c @@ -587,6 +587,29 @@ static void* findGstTypeFindFunctionFct(void* fct) printf_log(LOG_NONE, "Warning, no more slot for gstreamer GstTypeFindFunction callback\n"); return NULL; } +//GstPadIterIntLinkFunction +#define GO(A) \ +static uintptr_t my_GstPadIterIntLinkFunction_fct_##A = 0; \ +static void* my_GstPadIterIntLinkFunction_##A(void* a, void* b) \ +{ \ + return (void*)RunFunctionFmt(my_GstPadIterIntLinkFunction_fct_##A, "pp", a, b); \ +} +SUPER() +#undef GO +static void* findGstPadIterIntLinkFunctionFct(void* fct) +{ + if(!fct) return fct; + void* p; + if((p = GetNativeFnc((uintptr_t)fct))) return p; + #define GO(A) if(my_GstPadIterIntLinkFunction_fct_##A == (uintptr_t)fct) return my_GstPadIterIntLinkFunction_##A; + SUPER() + #undef GO + #define GO(A) if(my_GstPadIterIntLinkFunction_fct_##A == 0) {my_GstPadIterIntLinkFunction_fct_##A = (uintptr_t)fct; return my_GstPadIterIntLinkFunction_##A; } + SUPER() + #undef GO + printf_log(LOG_NONE, "Warning, no more slot for gstreamer GstPadIterIntLinkFunction callback\n"); + return NULL; +} #undef SUPER @@ -1054,6 +1077,11 @@ EXPORT int my_gst_type_find_register(x64emu_t* emu, void* plugin, void* name, ui return my->gst_type_find_register(plugin, name, rank, findGstTypeFindFunctionFct(f), ext, caps, data, findDestroyFct(f)); } +EXPORT void my_gst_pad_set_iterate_internal_links_function_full(x64emu_t* emu, void* pad, void* f, void* data, void* d) +{ + my->gst_pad_set_iterate_internal_links_function_full(pad, findGstPadIterIntLinkFunctionFct(f), data, findDestroyFct(d)); +} + #define PRE_INIT \ if(box64_nogtk) \ return -1; |