diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/glsink/glimagesink.c | 7 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 6 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sys/glsink/glimagesink.c b/sys/glsink/glimagesink.c index d1a76015..efef625a 100644 --- a/sys/glsink/glimagesink.c +++ b/sys/glsink/glimagesink.c @@ -840,14 +840,13 @@ gst_glimagesink_fixate (GstPad * pad, const GstCaps * caps) newcaps = gst_caps_copy (caps); structure = gst_caps_get_structure (newcaps, 0); - if (gst_caps_structure_fixate_field_nearest_int (structure, "width", 320)) { + if (gst_structure_fixate_field_nearest_int (structure, "width", 320)) { return newcaps; } - if (gst_caps_structure_fixate_field_nearest_int (structure, "height", 240)) { + if (gst_structure_fixate_field_nearest_int (structure, "height", 240)) { return newcaps; } - if (gst_caps_structure_fixate_field_nearest_double (structure, "framerate", - 30.0)) { + if (gst_structure_fixate_field_nearest_double (structure, "framerate", 30.0)) { return newcaps; } diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 7d0e16a2..ef0f2be7 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -690,8 +690,7 @@ gst_v4l2src_fixate (GstPad * pad, const GstCaps * const_caps) for (i = 0; i < gst_caps_get_size (caps); i++) { structure = gst_caps_get_structure (caps, i); changed |= - gst_caps_structure_fixate_field_nearest_int (structure, "width", - G_MAXINT); + gst_structure_fixate_field_nearest_int (structure, "width", G_MAXINT); } if (changed) return caps; @@ -699,8 +698,7 @@ gst_v4l2src_fixate (GstPad * pad, const GstCaps * const_caps) for (i = 0; i < gst_caps_get_size (caps); i++) { structure = gst_caps_get_structure (caps, i); changed |= - gst_caps_structure_fixate_field_nearest_int (structure, "height", - G_MAXINT); + gst_structure_fixate_field_nearest_int (structure, "height", G_MAXINT); } if (changed) return caps; |