summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorLevente Farkas <lfarkas@lfarkas.org>2009-02-17 11:01:47 -0800
committerDavid Schleef <ds@schleef.org>2009-02-23 09:20:49 -0800
commitd2fc4cb3ba7711170d5f4d1a9f080496b3268b87 (patch)
tree8eb1925802bf805b7126a5df226bdc40eacbc485 /sys
parent42c8aa7abc14a67e1241d90ad0e6b0a6e8af08c0 (diff)
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>
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/v4l2src_calls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c
index c247c497..971868bf 100644
--- a/sys/v4l2/v4l2src_calls.c
+++ b/sys/v4l2/v4l2src_calls.c
@@ -771,6 +771,7 @@ unknown_type:
}
#endif /* defined VIDIOC_ENUM_FRAMEINTERVALS */
+#ifdef VIDIOC_ENUM_FRAMESIZES
static gint
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 */
return ((w2 * h2) - (w1 * h1));
}
+#endif
GstCaps *
gst_v4l2src_probe_caps_for_format (GstV4l2Src * v4l2src, guint32 pixelformat,