mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin: add meaningful names for queue elements inside camerabin
This commit is contained in:
parent
00148e3736
commit
30ff3bc098
2 changed files with 9 additions and 7 deletions
|
@ -570,8 +570,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
|
||||||
/* Add queue element for video */
|
/* Add queue element for video */
|
||||||
vid->tee_video_srcpad = gst_element_get_request_pad (vid->tee, "src%d");
|
vid->tee_video_srcpad = gst_element_get_request_pad (vid->tee, "src%d");
|
||||||
|
|
||||||
if (!(vid->video_queue =
|
vid->video_queue = gst_element_factory_make ("queue", "video-queue");
|
||||||
gst_camerabin_create_and_add_element (vidbin, "queue"))) {
|
if (!gst_camerabin_add_element (vidbin, vid->video_queue)) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -621,7 +621,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add queue element for audio */
|
/* Add queue element for audio */
|
||||||
if (!(gst_camerabin_create_and_add_element (vidbin, "queue"))) {
|
queue = gst_element_factory_make ("queue", "audio-queue");
|
||||||
|
if (!gst_camerabin_add_element (vidbin, queue)) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,7 +665,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
|
||||||
}
|
}
|
||||||
/* Add queue leading out of the video bin and to view finder */
|
/* Add queue leading out of the video bin and to view finder */
|
||||||
vid->tee_vf_srcpad = gst_element_get_request_pad (vid->tee, "src%d");
|
vid->tee_vf_srcpad = gst_element_get_request_pad (vid->tee, "src%d");
|
||||||
if (!(queue = gst_camerabin_create_and_add_element (vidbin, "queue"))) {
|
queue = gst_element_factory_make ("queue", "viewfinder-queue");
|
||||||
|
if (!gst_camerabin_add_element (vidbin, queue)) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
/* Set queue leaky, we don't want to block video encoder feed, but
|
/* Set queue leaky, we don't want to block video encoder feed, but
|
||||||
|
|
|
@ -750,9 +750,9 @@ camerabin_create_elements (GstCameraBin * camera)
|
||||||
gst_pad_add_buffer_probe (camera->pad_src_img,
|
gst_pad_add_buffer_probe (camera->pad_src_img,
|
||||||
G_CALLBACK (gst_camerabin_have_img_buffer), camera);
|
G_CALLBACK (gst_camerabin_have_img_buffer), camera);
|
||||||
|
|
||||||
/* Add image queue */
|
/* Add queue leading to image bin */
|
||||||
if (!(camera->img_queue =
|
camera->img_queue = gst_element_factory_make ("queue", "image-queue");
|
||||||
gst_camerabin_create_and_add_element (GST_BIN (camera), "queue"))) {
|
if (!gst_camerabin_add_element (GST_BIN (camera), camera->img_queue)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue