mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
ges: Fix compilation with latest GLib
g_clear_pointer() is now preserving the type of its arguments for the free function. ges-xml-formatter.c: In function ‘_dispose’: ges-xml-formatter.c:1635:7: error: function called through a non-compatible type [-Werror] (GDestroyNotify) g_hash_table_unref); /usr/include/glib-2.0/glib/gmem.h:121:8: note: in definition of macro ‘g_clear_pointer’ (destroy) (_ptr); \ ^~~~~~~ https://bugzilla.gnome.org/show_bug.cgi?id=797310
This commit is contained in:
parent
6837a61450
commit
ee7c2d07b8
2 changed files with 6 additions and 7 deletions
|
@ -348,12 +348,11 @@ _dispose (GObject * object)
|
|||
{
|
||||
GESBaseXmlFormatterPrivate *priv = _GET_PRIV (object);
|
||||
|
||||
g_clear_pointer (&priv->assetid_pendingclips,
|
||||
(GDestroyNotify) g_hash_table_unref);
|
||||
g_clear_pointer (&priv->containers, (GDestroyNotify) g_hash_table_unref);
|
||||
g_clear_pointer (&priv->clipid_pendings, (GDestroyNotify) g_hash_table_unref);
|
||||
g_clear_pointer (&priv->tracks, (GDestroyNotify) g_hash_table_unref);
|
||||
g_clear_pointer (&priv->layers, (GDestroyNotify) g_hash_table_unref);
|
||||
g_clear_pointer (&priv->assetid_pendingclips, g_hash_table_unref);
|
||||
g_clear_pointer (&priv->containers, g_hash_table_unref);
|
||||
g_clear_pointer (&priv->clipid_pendings, g_hash_table_unref);
|
||||
g_clear_pointer (&priv->tracks, g_hash_table_unref);
|
||||
g_clear_pointer (&priv->layers, g_hash_table_unref);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
}
|
||||
|
|
|
@ -1632,7 +1632,7 @@ static void
|
|||
_dispose (GObject * object)
|
||||
{
|
||||
g_clear_pointer (&GES_XML_FORMATTER (object)->priv->element_id,
|
||||
(GDestroyNotify) g_hash_table_unref);
|
||||
g_hash_table_unref);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue