summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2011-03-22 12:04:20 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2011-03-23 16:13:32 -0300
commit6913db30f89162012437eae6b41fbaa726fce200 (patch)
tree37394ae086ad79a59ffd328c7d7bfa4311fdcb72 /gst
parent2da37d966d062dafe394f01c32844395363cbbef (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/camerabin2/gstcamerabin2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 36aae08c5..38f093d0e 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -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);
}
}