sort_by_frame_size is declared static and only used inside
an ifdef, so use the same ifdef to define the function. Fixes #572185
Signed-off-by: David Schleef <ds@schleef.org>
}
#endif /* defined VIDIOC_ENUM_FRAMEINTERVALS */
+#ifdef VIDIOC_ENUM_FRAMESIZES
static gint
sort_by_frame_size (GstStructure * s1, GstStructure * s2)
{
/* I think it's safe to assume that this won't overflow for a while */
return ((w2 * h2) - (w1 * h1));
}
+#endif
GstCaps *
gst_v4l2src_probe_caps_for_format (GstV4l2Src * v4l2src, guint32 pixelformat,