mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
9aa68dea51
commit
484291b1b4
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue