camerabin2: No need to force audiosrc to null on stop_capture

Setting the audio source to null isn't needed and it could
make the EOS that is still flowing be dropped if autoaudiosrc
is used because its pads go flushing before the EOS gets pushed
from the real source.
This commit is contained in:
Thiago Santos 2011-03-22 12:04:20 -03:00
parent 2da37d966d
commit 6913db30f8

View file

@ -258,7 +258,6 @@ gst_camera_bin_stop_capture (GstCameraBin * camerabin)
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);
}
}