v4l2sink: fix another unused-but-set-variable warning
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 17:16:11 +0000 (18:16 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 17:16:11 +0000 (18:16 +0100)
sys/v4l2/gstv4l2sink.c

index aa6785cfea06d334d685c90d17f6e423e0ed145c..fcf7e873277e9ca0166f2bac5335e059778ae4b1 100644 (file)
@@ -658,7 +658,7 @@ gst_v4l2sink_get_caps (GstBaseSink * bsink)
 
   ret = gst_caps_new_empty ();
 
-  for (walk = v4l2sink->v4l2object->formats; walk; walk = walk->next) {
+  for (walk = formats; walk; walk = walk->next) {
     struct v4l2_fmtdesc *format;
 
     GstStructure *template;