mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -895,6 +895,8 @@ gst_v4l2_object_close (GstV4l2Object * v4l2object)
|
|||
if (!gst_v4l2_close (v4l2object))
|
||||
return FALSE;
|
||||
|
||||
gst_caps_replace (&v4l2object->probed_caps, NULL);
|
||||
|
||||
if (v4l2object->formats) {
|
||||
gst_v4l2_object_clear_format_list (v4l2object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue