mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
v4l2src: Make sort_by_frame_size conditionally compiled
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>
This commit is contained in:
parent
42c8aa7abc
commit
d2fc4cb3ba
1 changed files with 2 additions and 0 deletions
|
@ -771,6 +771,7 @@ unknown_type:
|
||||||
}
|
}
|
||||||
#endif /* defined VIDIOC_ENUM_FRAMEINTERVALS */
|
#endif /* defined VIDIOC_ENUM_FRAMEINTERVALS */
|
||||||
|
|
||||||
|
#ifdef VIDIOC_ENUM_FRAMESIZES
|
||||||
static gint
|
static gint
|
||||||
sort_by_frame_size (GstStructure * s1, GstStructure * s2)
|
sort_by_frame_size (GstStructure * s1, GstStructure * s2)
|
||||||
{
|
{
|
||||||
|
@ -784,6 +785,7 @@ sort_by_frame_size (GstStructure * s1, GstStructure * s2)
|
||||||
/* I think it's safe to assume that this won't overflow for a while */
|
/* I think it's safe to assume that this won't overflow for a while */
|
||||||
return ((w2 * h2) - (w1 * h1));
|
return ((w2 * h2) - (w1 * h1));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
GstCaps *
|
GstCaps *
|
||||||
gst_v4l2src_probe_caps_for_format (GstV4l2Src * v4l2src, guint32 pixelformat,
|
gst_v4l2src_probe_caps_for_format (GstV4l2Src * v4l2src, guint32 pixelformat,
|
||||||
|
|
Loading…
Reference in a new issue