mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 03:15:47 +00:00
camerabin: report an error if we fail to link vfsrc and viewfinder queue
https://bugzilla.gnome.org/show_bug.cgi?id=727855
This commit is contained in:
parent
3f1eb8ee71
commit
b261374462
1 changed files with 7 additions and 2 deletions
|
@ -1749,8 +1749,13 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
|
|||
camera->src_capture_notify_id = g_signal_connect (G_OBJECT (camera->src),
|
||||
"notify::ready-for-capture",
|
||||
G_CALLBACK (gst_camera_bin_src_notify_readyforcapture), camera);
|
||||
gst_element_link_pads (camera->src, "vfsrc", camera->viewfinderbin_queue,
|
||||
"sink");
|
||||
|
||||
if (!gst_element_link_pads (camera->src, "vfsrc",
|
||||
camera->viewfinderbin_queue, "sink")) {
|
||||
GST_ERROR_OBJECT (camera,
|
||||
"Failed to link camera source's vfsrc pad to viewfinder queue");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!gst_element_link_pads (camera->src, "imgsrc",
|
||||
camera->imagebin_capsfilter, "sink")) {
|
||||
|
|
Loading…
Reference in a new issue