diff options
author | Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com> | 2010-04-20 16:58:33 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-04-21 12:25:39 +0300 |
commit | 30ff3bc0981f1189ac20fd8d01e21c4ede209128 (patch) | |
tree | 864461c930327547334eaf1fb6c7b8762231b368 /gst | |
parent | 00148e3736ba61a5b5707511091b0d57ef026098 (diff) | |
download | gstreamer-plugins-bad-30ff3bc0981f1189ac20fd8d01e21c4ede209128.tar.gz |
camerabin: add meaningful names for queue elements inside camerabin
Diffstat (limited to 'gst')
-rw-r--r-- | gst/camerabin/camerabinvideo.c | 10 | ||||
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 935f3020f..4ec5cfa38 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -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 diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 53c410757..1f22b877a 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -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; } |