From a3a61f89403cd39fd08f2f1d0e1475f55b0a48f4 Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Fri, 14 Aug 2009 10:11:25 +0200 Subject: v4l2src: clear format list in READY->NULL Clear format list and probed caps when going to NULL so if a new device is set we'll probe the formats again instead of using previously detected ones. Fixes bug #591747. --- sys/v4l2/gstv4l2object.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/v4l2/gstv4l2object.c') diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index ce6f7c9a..f73ce218 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -604,6 +604,10 @@ gst_v4l2_object_stop (GstV4l2Object * v4l2object) if (!gst_v4l2_close (v4l2object)) return FALSE; + if (v4l2object->formats) { + gst_v4l2_object_clear_format_list (v4l2object); + } + return TRUE; } -- cgit