From b1b0082cdb0f4f6fada0e8df9053e2ecb6de8d0b Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 22 Jun 2011 15:37:44 -0300 Subject: [PATCH] camerabin2: Use names for image and video encodebin Naming encodebins as image-encodebin and video-encodebin to make it easier for debugging camerabin2. --- gst/camerabin2/gstcamerabin2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 227724dbc5..f69b3d350d 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -981,7 +981,8 @@ gst_camera_bin_create_elements (GstCameraBin * camera) if (!camera->elements_created) { /* TODO check that elements created in _init were really created */ - camera->video_encodebin = gst_element_factory_make ("encodebin", NULL); + camera->video_encodebin = + gst_element_factory_make ("encodebin", "video-encodebin"); if (!camera->video_encodebin) { missing_element_name = "encodebin"; goto missing_element; @@ -1036,7 +1037,8 @@ gst_camera_bin_create_elements (GstCameraBin * camera) camera->video_profile_switch = TRUE; } - camera->image_encodebin = gst_element_factory_make ("encodebin", NULL); + camera->image_encodebin = + gst_element_factory_make ("encodebin", "image-encodebin"); if (!camera->image_encodebin) { missing_element_name = "encodebin"; goto missing_element;