mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 11:15:31 +00:00
video: remove spurious gst_caps_make_writable()
In gst_video_info_dma_drm_to_caps() the caps are newly created, so there's no need for make it writable. In gst_video_info_dma_drm_from_caps() a copy of the caps is done, which implies a gst_caps_make_writable(). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4195>
This commit is contained in:
parent
b7bf5f8e02
commit
d6dd81dbdd
1 changed files with 1 additions and 3 deletions
|
@ -269,8 +269,6 @@ gst_video_info_dma_drm_to_caps (const GstVideoInfoDmaDrm * drm_info)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
caps = gst_caps_make_writable (caps);
|
||||
|
||||
str = gst_video_dma_drm_fourcc_to_string (drm_info->drm_fourcc,
|
||||
drm_info->drm_modifier);
|
||||
|
||||
|
@ -316,7 +314,7 @@ gst_video_info_dma_drm_from_caps (GstVideoInfoDmaDrm * drm_info,
|
|||
|
||||
GST_DEBUG ("parsing caps %" GST_PTR_FORMAT, caps);
|
||||
|
||||
tmp_caps = gst_caps_make_writable (gst_caps_copy (caps));
|
||||
tmp_caps = gst_caps_copy (caps);
|
||||
structure = gst_caps_get_structure (tmp_caps, 0);
|
||||
|
||||
str = gst_structure_get_string (structure, "drm-format");
|
||||
|
|
Loading…
Reference in a new issue