v4l2src: Address unused but set variable

The v4l2object formats list was being obtained into a local variable and
then still used from the context. Make use of the local variable.
This commit is contained in:
Robert Swain 2011-04-15 15:47:24 +02:00 committed by Tim-Philipp Müller
parent 75886ba63d
commit e02b7e7fdf

View file

@ -578,7 +578,7 @@ gst_v4l2src_get_caps (GstBaseSrc * src)
ret = gst_caps_new_empty ();
for (walk = v4l2src->v4l2object->formats; walk; walk = walk->next) {
for (walk = formats; walk; walk = walk->next) {
struct v4l2_fmtdesc *format;
GstStructure *template;