From 87d600b7a21443f085c440eb9d279cf873aa5bba Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 12 May 2010 21:11:27 -0300 Subject: [PATCH] camerabin: Unblock the viewfinder when going to READY Unblock the viewfinder when going to ready to avoid blocking when setting camerabin to playing again and attemping to capture. Keep the property as is. --- gst/camerabin/gstcamerabin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 60fc2a4628..03a8a6c3dc 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -3599,6 +3599,11 @@ gst_camerabin_change_state (GstElement * element, GstStateChange transition) g_cond_signal (camera->cond); } g_mutex_unlock (camera->capture_mutex); + + /* unblock the viewfinder, but keep the property as is */ + gst_pad_set_blocked_async (camera->pad_src_view, FALSE, + (GstPadBlockCallback) camerabin_pad_blocked, camera); + g_signal_handlers_disconnect_by_func (camera->src_vid_src, gst_camerabin_scene_mode_notify_cb, camera); g_signal_handlers_disconnect_by_func (camera->src_vid_src,