mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-01 19:41:28 +00:00
Fix type punning
Original commit message from CVS: Fix type punning
This commit is contained in:
parent
9ada64497e
commit
0716706389
|
@ -180,7 +180,11 @@ gst_plugin_load_plugin (GstPlugin *plugin, GError **error)
|
|||
module = g_module_open (filename, G_MODULE_BIND_LAZY);
|
||||
|
||||
if (module != NULL) {
|
||||
if (g_module_symbol (module, "plugin_desc", (gpointer *)&desc)) {
|
||||
gpointer ptr;
|
||||
|
||||
if (g_module_symbol (module, "plugin_desc", &ptr)) {
|
||||
desc = (GstPluginDesc *)ptr;
|
||||
|
||||
GST_DEBUG (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" loaded, called entry function...", filename);
|
||||
|
||||
plugin->filename = g_strdup (filename);
|
||||
|
|
Loading…
Reference in a new issue