26 Oct
2023
26 Oct
'23
7:02 p.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/unixlib.c:
return element; }
+GstElement *create_element_by_factory(GstElementFactory *factory) +{ + gchar *plugin_name = gst_plugin_feature_get_name(GST_PLUGIN_FEATURE(factory)); + GstElement *element; + + if ((element = gst_element_factory_create(factory, NULL))) + { + gchar *element_name = gst_element_get_name(element); + GST_INFO("Created element %s %p by factory %s.", element_name, element, plugin_name);
Same here, I suspect `GST_PTR_FORMAT` would do a great job both for the factory and the element. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3810#note_49879