summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2012-05-01 15:08:47 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2012-05-01 15:20:50 -0300
commitb030923eb57cf11223f679ef8f0fc88db1ca26d1 (patch)
tree90c99b3bf730f584b0b4f07fa65f829ec4d099fa /gst/camerabin2
parentad9822dea731f7c254b5761bc2f1765e9f21dd67 (diff)
downloadgstreamer-plugins-bad-b030923eb57cf11223f679ef8f0fc88db1ca26d1.tar.gz
camerabin: Use plain video encoding profile for images
Do not use jpeg as a container format for image captures, use the plain video encoding format. It was used as a container in 0.10 to force the addition of tags to the image.
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstcamerabin2.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 0d0547d64..93f018518 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -1599,7 +1599,6 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
NULL);
if (camera->image_profile == NULL) {
- GstEncodingContainerProfile *prof;
GstEncodingVideoProfile *vprof;
GstCaps *caps;
@@ -1607,13 +1606,8 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
vprof = gst_encoding_video_profile_new (caps, NULL, NULL, 1);
gst_encoding_video_profile_set_variableframerate (vprof, TRUE);
- prof = gst_encoding_container_profile_new ("jpeg", "jpeg container", caps,
- NULL);
- gst_encoding_container_profile_add_profile (prof,
- (GstEncodingProfile *) vprof);
-
gst_caps_unref (caps);
- camera->image_profile = (GstEncodingProfile *) prof;
+ camera->image_profile = (GstEncodingProfile *) vprof;
camera->image_profile_switch = TRUE;
}