fix for video api update

This commit is contained in:
Wim Taymans 2012-04-19 14:24:45 +02:00
parent 7ff3293a44
commit 1cbd31e3ee
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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");