if (camerabin->audio_src) {
GstClock *clock = gst_pipeline_get_clock (GST_PIPELINE_CAST (camerabin));
- /* FIXME We need to set audiosrc to null to make it resync the ringbuffer
- * while bug https://bugzilla.gnome.org/show_bug.cgi?id=648359 isn't
- * fixed */
- gst_element_set_state (camerabin->audio_src, GST_STATE_NULL);
-
/* need to reset eos status (pads could be flushing) */
gst_element_set_state (camerabin->audio_capsfilter, GST_STATE_READY);
gst_element_set_state (camerabin->audio_volume, GST_STATE_READY);
if (camerabin->mode == MODE_VIDEO && camerabin->audio_src) {
camerabin->audio_drop_eos = FALSE;
gst_element_send_event (camerabin->audio_src, gst_event_new_eos ());
+
+ /* FIXME We need to set audiosrc to null to make it resync the ringbuffer
+ * while bug https://bugzilla.gnome.org/show_bug.cgi?id=648359 isn't
+ * fixed.
+ *
+ * Also, we set to NULL here to stop capturing audio through to the next
+ * video mode start capture. */
+ gst_element_set_state (camerabin->audio_src, GST_STATE_NULL);
}
}