mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
fix for video api update
This commit is contained in:
parent
7ff3293a44
commit
1cbd31e3ee
2 changed files with 4 additions and 4 deletions
|
@ -127,8 +127,8 @@ gst_core_video_buffer_new (GstCoreMediaCtx * ctx, CVBufferRef cvbuf,
|
||||||
|
|
||||||
width = vinfo->width;
|
width = vinfo->width;
|
||||||
video_meta =
|
video_meta =
|
||||||
gst_buffer_add_video_meta_full (buf, GST_VIDEO_FORMAT_NV12,
|
gst_buffer_add_video_meta_full (buf, GST_VIDEO_FRAME_FLAG_NONE,
|
||||||
GST_VIDEO_FRAME_FLAG_NONE, width, height, n_planes, offset, stride);
|
GST_VIDEO_FORMAT_NV12, width, height, n_planes, offset, stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
@ -272,8 +272,8 @@ pvr_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
|
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
|
||||||
/* these are just the defaults for now */
|
/* these are just the defaults for now */
|
||||||
meta = gst_buffer_add_video_meta (pvr, GST_VIDEO_INFO_FORMAT (info),
|
meta = gst_buffer_add_video_meta (pvr, GST_VIDEO_FRAME_FLAG_NONE,
|
||||||
GST_VIDEO_FRAME_FLAG_NONE, pvrpool->padded_width,
|
GST_VIDEO_INFO_FORMAT (info), pvrpool->padded_width,
|
||||||
pvrpool->padded_height);
|
pvrpool->padded_height);
|
||||||
if (G_UNLIKELY (meta == NULL))
|
if (G_UNLIKELY (meta == NULL))
|
||||||
GST_WARNING_OBJECT (pool, "Failed to add GstVideoMeta");
|
GST_WARNING_OBJECT (pool, "Failed to add GstVideoMeta");
|
||||||
|
|
Loading…
Reference in a new issue