From e2c67098e9b439c4c2a525e3c5868b7cf01c08db Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 13 May 2011 16:27:17 -0300 Subject: [PATCH] camerabin2: use jpeg as a container to force jifmux usage Jifmux should be used as it can do xmp/exif tagging, so this patch sets jpeg as a container to force it to be used together with a jpeg encoder --- gst/camerabin2/gstcamerabin2.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index d1a973867e..37b8015eef 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -1051,14 +1051,19 @@ gst_camera_bin_create_elements (GstCameraBin * camera) NULL); if (camera->image_profile == NULL) { - GstEncodingVideoProfile *prof; + GstEncodingContainerProfile *prof; + GstEncodingVideoProfile *vprof; GstCaps *caps; caps = gst_caps_new_simple ("image/jpeg", NULL); - prof = gst_encoding_video_profile_new (caps, NULL, NULL, 1); - gst_encoding_video_profile_set_variableframerate (prof, TRUE); - gst_caps_unref (caps); + 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, vprof); + + gst_caps_unref (caps); camera->image_profile = (GstEncodingProfile *) prof; camera->image_profile_switch = TRUE; }