diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-08-29 22:05:56 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-08-29 22:05:56 -0300 |
commit | edb5a28973befbea6543dd01212a936e7ab538f4 (patch) | |
tree | 085e507838ad87d92ab7e9e17ebe5e83dd70e2a0 /gst/camerabin2 | |
parent | cc130a2fea40ef1559c7708af1c68957fb29a5b1 (diff) | |
download | gstreamer-plugins-bad-edb5a28973befbea6543dd01212a936e7ab538f4.tar.gz |
camerabin: no need to set clock/basetime again
The base and clock aren't lost anymore on state changes
in 1.0
Diffstat (limited to 'gst/camerabin2')
-rw-r--r-- | gst/camerabin2/gstcamerabin2.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 13a19015e..08a8b259d 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -390,20 +390,7 @@ gst_camera_bin_start_capture (GstCameraBin2 * camerabin) if (camerabin->location) location = g_strdup_printf (camerabin->location, capture_index); - if (camerabin->mode == MODE_VIDEO) { - if (camerabin->audio_src) { - GstClock *clock = gst_pipeline_get_clock (GST_PIPELINE_CAST (camerabin)); - - gst_element_set_state (camerabin->audio_src, GST_STATE_PAUSED); - - gst_element_set_base_time (camerabin->audio_src, - gst_element_get_base_time (GST_ELEMENT_CAST (camerabin))); - if (clock) { - gst_element_set_clock (camerabin->audio_src, clock); - gst_object_unref (clock); - } - } - } else { + if (camerabin->mode == MODE_IMAGE) { /* store the next capture buffer filename */ g_mutex_lock (&camerabin->image_capture_mutex); camerabin->image_location_list = |