mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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.
This commit is contained in:
parent
ca11a51295
commit
87d600b7a2
1 changed files with 5 additions and 0 deletions
|
@ -3599,6 +3599,11 @@ gst_camerabin_change_state (GstElement * element, GstStateChange transition)
|
||||||
g_cond_signal (camera->cond);
|
g_cond_signal (camera->cond);
|
||||||
}
|
}
|
||||||
g_mutex_unlock (camera->capture_mutex);
|
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,
|
g_signal_handlers_disconnect_by_func (camera->src_vid_src,
|
||||||
gst_camerabin_scene_mode_notify_cb, camera);
|
gst_camerabin_scene_mode_notify_cb, camera);
|
||||||
g_signal_handlers_disconnect_by_func (camera->src_vid_src,
|
g_signal_handlers_disconnect_by_func (camera->src_vid_src,
|
||||||
|
|
Loading…
Reference in a new issue