camerabin: add meaningful names for queue elements inside camerabin

This commit is contained in:
Lasse Laukkanen 2010-04-20 16:58:33 +03:00 committed by Stefan Kost
parent 00148e3736
commit 30ff3bc098
2 changed files with 9 additions and 7 deletions

View file

@ -570,8 +570,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
/* Add queue element for video */
vid->tee_video_srcpad = gst_element_get_request_pad (vid->tee, "src%d");
if (!(vid->video_queue =
gst_camerabin_create_and_add_element (vidbin, "queue"))) {
vid->video_queue = gst_element_factory_make ("queue", "video-queue");
if (!gst_camerabin_add_element (vidbin, vid->video_queue)) {
goto error;
}
@ -621,7 +621,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
}
/* 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;
}
@ -664,7 +665,8 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
}
/* 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");
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;
}
/* Set queue leaky, we don't want to block video encoder feed, but

View file

@ -750,9 +750,9 @@ camerabin_create_elements (GstCameraBin * camera)
gst_pad_add_buffer_probe (camera->pad_src_img,
G_CALLBACK (gst_camerabin_have_img_buffer), camera);
/* Add image queue */
if (!(camera->img_queue =
gst_camerabin_create_and_add_element (GST_BIN (camera), "queue"))) {
/* Add queue leading to image bin */
camera->img_queue = gst_element_factory_make ("queue", "image-queue");
if (!gst_camerabin_add_element (GST_BIN (camera), camera->img_queue)) {
goto done;
}