It seems that v4l2src isn't happy when switching formats on ready
state, it works when putting it to NULL. Keep this workaround in
wrappercamerabinsrc while v4l2src isn't fixed.
Fixes #849832
clock = gst_element_get_clock (self->src_vid_src);
base_time = gst_element_get_base_time (self->src_vid_src);
- gst_element_set_state (self->src_vid_src, GST_STATE_READY);
+ /* Ideally, we should only need to get the source to READY here,
+ * but it seems v4l2src isn't happy with this. Putting to NULL makes
+ * it work.
+ *
+ * TODO fix this in v4l2src
+ */
+ gst_element_set_state (self->src_vid_src, GST_STATE_NULL);
set_capsfilter_caps (self, caps);
self->drop_newseg = TRUE;