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:
parent
75886ba63d
commit
e02b7e7fdf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user