shmsink: Fix compilation with latest GLib
authorSebastian Dröge <sebastian@centricular.com>
Tue, 20 Mar 2018 14:16:19 +0000 (16:16 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Mar 2018 14:16:19 +0000 (16:16 +0200)
commit1b3b3677cc637f404548d6412c617b16ac1fe0c6
treef5a38140ca567f3561e495462e2dd74019a9a3fc
parentce0d902d39b87d65a97787e2583385ad7be79755
shmsink: Fix compilation with latest GLib

g_object_ref() forwards its arguments type.

gstshmsink.c: In function ‘gst_shm_sink_allocator_alloc_locked’:
/usr/include/glib-2.0/gobject/gobject.h:512:32: error: passing argument 3 of ‘gst_memory_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 #define g_object_ref(Obj)      ((__typeof__(Obj)) (g_object_ref) (Obj))
                                ^
gstshmsink.c:292:45: note: in expansion of macro ‘g_object_ref’
     gst_memory_init (memory, params->flags, g_object_ref (self), NULL,
                                             ^~~~~~~~~~~~
sys/shm/gstshmsink.c