diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 3c335d98f9..c52e2c2296 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -228,8 +228,10 @@ gst_camera_bin_stop_capture (GstCameraBin * camerabin) if (camerabin->src) g_signal_emit_by_name (camerabin->src, "stop-capture", NULL); - if (camerabin->mode == MODE_VIDEO && camerabin->audio_src) + if (camerabin->mode == MODE_VIDEO && camerabin->audio_src) { + gst_element_send_event (camerabin->audio_src, gst_event_new_eos ()); gst_element_set_state (camerabin->audio_src, GST_STATE_NULL); + } } static void