mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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;
|
||||
video_meta =
|
||||
gst_buffer_add_video_meta_full (buf, GST_VIDEO_FORMAT_NV12,
|
||||
GST_VIDEO_FRAME_FLAG_NONE, width, height, n_planes, offset, stride);
|
||||
gst_buffer_add_video_meta_full (buf, GST_VIDEO_FRAME_FLAG_NONE,
|
||||
GST_VIDEO_FORMAT_NV12, width, height, n_planes, offset, stride);
|
||||
}
|
||||
|
||||
return buf;
|
||||
|
|
|
@ -272,8 +272,8 @@ pvr_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
|
|||
|
||||
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
|
||||
/* these are just the defaults for now */
|
||||
meta = gst_buffer_add_video_meta (pvr, GST_VIDEO_INFO_FORMAT (info),
|
||||
GST_VIDEO_FRAME_FLAG_NONE, pvrpool->padded_width,
|
||||
meta = gst_buffer_add_video_meta (pvr, GST_VIDEO_FRAME_FLAG_NONE,
|
||||
GST_VIDEO_INFO_FORMAT (info), pvrpool->padded_width,
|
||||
pvrpool->padded_height);
|
||||
if (G_UNLIKELY (meta == NULL))
|
||||
GST_WARNING_OBJECT (pool, "Failed to add GstVideoMeta");
|
||||
|
|
Loading…
Reference in a new issue