瀏覽代碼

Merge branch 'CR_817_fix_building_warning_Andy.hu' into 'JH7100_VisionFive_devel'

CR817: fix patch and building warning for gst-plugins-bad

See merge request jh7100/buildroot!23
jianlong.huang 2 年之前
父節點
當前提交
c86d656ca0
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      package/gstreamer1/gst1-plugins-bad/0002-set-init-buffer-to-black.patch

+ 2 - 3
package/gstreamer1/gst1-plugins-bad/0002-set-init-buffer-to-black.patch

@@ -1,10 +1,10 @@
 --- a/sys/kms/gstkmssink.c	2020-10-26 19:14:46.656235000 +0800
 +++ b/sys/kms/gstkmssink.c	2021-12-16 15:35:15.590755066 +0800
-@@ -450,6 +450,19 @@
+@@ -450,6 +450,18 @@
      goto bo_failed;
    fb_id = kmsmem->fb_id;
 
-+  GST_INFO_OBJECT (self, "size = %lu, width = %lu, height = %lu.", vinfo->size, vinfo->width, vinfo->height);
++  GST_INFO_OBJECT (self, "size = %lu, width = %d, height = %d.", vinfo->size, vinfo->width, vinfo->height);
 +  if (vinfo->size == vinfo->width * vinfo->height * 3 / 2) {
 +    GstMapInfo mapInfo;
 +    if (gst_memory_map((GstMemory *)kmsmem, &mapInfo, GST_MAP_WRITE)) {
@@ -15,7 +15,6 @@
 +      gst_memory_unmap((GstMemory *)kmsmem, &mapInfo);
 +    }
 +  }
-+
 +
    conn = drmModeGetConnector (self->fd, self->conn_id);
    if (!conn)