mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
wrappercamerabinsrc: Avoid fixating capture caps
When setting the internal capsfilter caps for capture we should put the full caps instead of trying to fixate it ourselves. This way we let the elements (and mostly the source) select the best format instead of defaulting to what the pad fixation function picks.
This commit is contained in:
parent
ce45c15200
commit
4da517ae87
1 changed files with 2 additions and 6 deletions
|
@ -605,9 +605,6 @@ start_image_capture (GstWrapperCameraBinSrc * self)
|
|||
|
||||
caps = gst_pad_get_allowed_caps (self->imgsrc);
|
||||
|
||||
caps = gst_caps_make_writable (caps);
|
||||
gst_pad_fixate_caps (self->imgsrc, caps);
|
||||
|
||||
gst_caps_replace (&self->image_capture_caps, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
|
@ -942,10 +939,9 @@ gst_wrapper_camera_bin_src_start_capture (GstBaseCameraSrc * camerasrc)
|
|||
if (src->src_zoom_filter)
|
||||
g_object_set (src->src_zoom_filter, "caps", NULL, NULL);
|
||||
|
||||
GST_DEBUG_OBJECT (src, "Getting allowed videosrc caps");
|
||||
caps = gst_pad_get_allowed_caps (src->vidsrc);
|
||||
caps = gst_caps_make_writable (caps);
|
||||
gst_pad_fixate_caps (src->vidsrc, caps);
|
||||
GST_DEBUG_OBJECT (src, "Vidsrc caps fixated to %" GST_PTR_FORMAT, caps);
|
||||
GST_DEBUG_OBJECT (src, "Video src caps %" GST_PTR_FORMAT, caps);
|
||||
|
||||
src->video_renegotiate = FALSE;
|
||||
g_mutex_unlock (camerasrc->capturing_mutex);
|
||||
|
|
Loading…
Reference in a new issue