summaryrefslogtreecommitdiff
path: root/sys/v4l
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2006-12-09 15:12:38 (GMT)
committerTim-Philipp Müller <tim@centricular.net>2006-12-09 15:12:38 (GMT)
commit595217e8401de7015886204e1ca4e2cfc06235f6 (patch)
treebae983ac572bfca55e79f81cb425da8090029464 /sys/v4l
parent8e8f88c13c71be232d86a49577de9d95c01340e2 (diff)
downloadgst-plugins-base-595217e8401de7015886204e1ca4e2cfc06235f6.tar.gz
gst-plugins-base-595217e8401de7015886204e1ca4e2cfc06235f6.tar.xz
Declare variables at the beginning of a block. Fixes #383195.
Original commit message from CVS: Patch by: Jens Granseuer <jensgr at gmx net> * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_create): * gst-libs/gst/rtp/gstbasertpaudiopayload.c: (gst_base_rtp_audio_payload_handle_frame_based_buffer), (gst_base_rtp_audio_payload_handle_sample_based_buffer): * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_fixate): Declare variables at the beginning of a block. Fixes #383195.
Diffstat (limited to 'sys/v4l')
-rw-r--r--sys/v4l/gstv4lsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c
index 564edb4..8422ee1 100644
--- a/sys/v4l/gstv4lsrc.c
+++ b/sys/v4l/gstv4lsrc.c
@@ -231,9 +231,9 @@ gst_v4lsrc_fixate (GstPad * pad, GstCaps * caps)
GST_DEBUG_OBJECT (v4lsrc, "targetting %dx%d", targetwidth, targetheight);
for (i = 0; i < gst_caps_get_size (caps); ++i) {
- structure = gst_caps_get_structure (caps, i);
const GValue *v;
+ structure = gst_caps_get_structure (caps, i);
gst_structure_fixate_field_nearest_int (structure, "width", targetwidth);
gst_structure_fixate_field_nearest_int (structure, "height", targetheight);
gst_structure_fixate_field_nearest_fraction (structure, "framerate", 15, 2);