Commit e02b7e7f authored by Robert Swain's avatar Robert Swain Committed by Tim-Philipp Müller
Browse files

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.
parent 75886ba6
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment