mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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.
This commit is contained in:
parent
ad9822dea7
commit
b030923eb5
1 changed files with 1 additions and 7 deletions
|
@ -1599,7 +1599,6 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (camera->image_profile == NULL) {
|
if (camera->image_profile == NULL) {
|
||||||
GstEncodingContainerProfile *prof;
|
|
||||||
GstEncodingVideoProfile *vprof;
|
GstEncodingVideoProfile *vprof;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
@ -1607,13 +1606,8 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
|
||||||
vprof = gst_encoding_video_profile_new (caps, NULL, NULL, 1);
|
vprof = gst_encoding_video_profile_new (caps, NULL, NULL, 1);
|
||||||
gst_encoding_video_profile_set_variableframerate (vprof, TRUE);
|
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);
|
gst_caps_unref (caps);
|
||||||
camera->image_profile = (GstEncodingProfile *) prof;
|
camera->image_profile = (GstEncodingProfile *) vprof;
|
||||||
camera->image_profile_switch = TRUE;
|
camera->image_profile_switch = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue