srt: Fix GCC function type error

gstsrtobject.c: In function ‘gst_srt_object_close’:
gstsrtobject.c:1036:7: error: function called through a non-compatible type [-Werror]
       (GDestroyNotify) g_closure_unref);
/usr/include/glib-2.0/glib/gmem.h:121:8: note: in definition of macro ‘g_clear_pointer’
       (destroy) (_ptr);                                                        \
        ^~~~~~~
gstsrtobject.c:1038:7: error: function called through a non-compatible type [-Werror]
       (GDestroyNotify) g_closure_unref);
/usr/include/glib-2.0/glib/gmem.h:121:8: note: in definition of macro ‘g_clear_pointer’
       (destroy) (_ptr);                                                        \
        ^~~~~~~

Arch Linux
gcc 8.2.1 20181127
glib 2.58.2
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-01-14 14:37:23 +01:00
parent 9aa68dea51
commit 484291b1b4
No known key found for this signature in database
GPG key ID: DE5E0C5F25941CA5

View file

@ -1032,10 +1032,8 @@ gst_srt_object_close (GstSRTObject * srtobject)
srtobject);
g_list_free_full (srtobject->callers, (GDestroyNotify) srt_caller_free);
g_clear_pointer (&srtobject->caller_added_closure,
(GDestroyNotify) g_closure_unref);
g_clear_pointer (&srtobject->caller_removed_closure,
(GDestroyNotify) g_closure_unref);
g_clear_pointer (&srtobject->caller_added_closure, g_closure_unref);
g_clear_pointer (&srtobject->caller_removed_closure, g_closure_unref);
srtobject->opened = FALSE;
}