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:
Michael Olbrich 2013-11-18 14:27:48 +01:00 committed by Nicolas Dufresne
parent d9c2914c90
commit f8f2fc3e86

View file

@ -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);
}