gst_rtsp_context_get_current: add (skip) annotation
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 6 Feb 2018 17:00:33 +0000 (18:00 +0100)
committerMathieu Duponchelle <mathieu@centricular.com>
Tue, 6 Feb 2018 17:06:14 +0000 (18:06 +0100)
The return value type is defined with G_DEFINE_POINTER_TYPE,
and gi emits the following warning:

Invalid non-constant return of bare structure or union; register as
boxed type or (skip)

gst/rtsp-server/rtsp-context.c

index 919ca2d..def64f2 100644 (file)
@@ -31,7 +31,7 @@ G_DEFINE_POINTER_TYPE (GstRTSPContext, gst_rtsp_context);
 static GPrivate current_context;
 
 /**
- * gst_rtsp_context_get_current:
+ * gst_rtsp_context_get_current: (skip):
  *
  * Get the current #GstRTSPContext. This object is retrieved from the
  * current thread that is handling the request for a client.