mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
camerabin: leave v4l2camsrc "capture-mode" as video mode when pausing
This commit is contained in:
parent
61b0a10d52
commit
a265e4d2b3
1 changed files with 0 additions and 12 deletions
|
@ -3201,12 +3201,6 @@ gst_camerabin_user_pause (GstCameraBin * camera)
|
||||||
g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", FALSE,
|
g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", FALSE,
|
||||||
"active-pad", camera->pad_src_view, NULL);
|
"active-pad", camera->pad_src_view, NULL);
|
||||||
|
|
||||||
/* Enable view finder mode in v4l2camsrc */
|
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS
|
|
||||||
(camera->src_vid_src), "capture-mode")) {
|
|
||||||
g_object_set (G_OBJECT (camera->src_vid_src), "capture-mode", 0, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set view finder to PLAYING and leave videobin PAUSED */
|
/* Set view finder to PLAYING and leave videobin PAUSED */
|
||||||
gst_element_set_locked_state (camera->vidbin, TRUE);
|
gst_element_set_locked_state (camera->vidbin, TRUE);
|
||||||
gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING);
|
gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING);
|
||||||
|
@ -3222,12 +3216,6 @@ gst_camerabin_user_pause (GstCameraBin * camera)
|
||||||
g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", TRUE,
|
g_object_set (G_OBJECT (camera->src_out_sel), "resend-latest", TRUE,
|
||||||
"active-pad", camera->pad_src_vid, NULL);
|
"active-pad", camera->pad_src_vid, NULL);
|
||||||
|
|
||||||
/* Enable video recording mode in v4l2camsrc */
|
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS
|
|
||||||
(camera->src_vid_src), "capture-mode")) {
|
|
||||||
g_object_set (G_OBJECT (camera->src_vid_src), "capture-mode", 2, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Bring all camerabin elements to PLAYING */
|
/* Bring all camerabin elements to PLAYING */
|
||||||
gst_element_set_locked_state (camera->vidbin, FALSE);
|
gst_element_set_locked_state (camera->vidbin, FALSE);
|
||||||
gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING);
|
gst_element_set_state (GST_ELEMENT (camera), GST_STATE_PLAYING);
|
||||||
|
|
Loading…
Reference in a new issue