mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
camerabin: set image bin to PAUSED when starting capture
Set image bin to PAUSED also when starting capture using photography interface.
This commit is contained in:
parent
a265e4d2b3
commit
8a39d28002
1 changed files with 3 additions and 3 deletions
|
@ -1528,9 +1528,9 @@ img_capture_prepared (gpointer data, GstCaps * caps)
|
||||||
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_img, NULL);
|
"active-pad", camera->pad_src_img, NULL);
|
||||||
|
|
||||||
if (!GST_CAMERABIN_IMAGE (camera->imgbin)->elements_created) {
|
/* We need to set image bin to PAUSED or buffer-allocs will fail */
|
||||||
gst_element_set_state (camera->imgbin, GST_STATE_READY);
|
GST_DEBUG_OBJECT (camera, "setting image bin to PAUSED");
|
||||||
}
|
gst_element_set_state (camera->imgbin, GST_STATE_PAUSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue