v4l2: clear cached caps on close
A different device with different caps may be used for the next open. https://bugzilla.gnome.org/show_bug.cgi?id=712611
This commit is contained in:
parent
d9c2914c90
commit
f8f2fc3e86
@ -895,6 +895,8 @@ gst_v4l2_object_close (GstV4l2Object * v4l2object)
|
|||||||
if (!gst_v4l2_close (v4l2object))
|
if (!gst_v4l2_close (v4l2object))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
gst_caps_replace (&v4l2object->probed_caps, NULL);
|
||||||
|
|
||||||
if (v4l2object->formats) {
|
if (v4l2object->formats) {
|
||||||
gst_v4l2_object_clear_format_list (v4l2object);
|
gst_v4l2_object_clear_format_list (v4l2object);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user