From 1cbd31e3eecbd37293723ad42d99490941be0a96 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 Apr 2012 14:24:45 +0200 Subject: [PATCH] fix for video api update --- sys/applemedia/corevideobuffer.c | 4 ++-- sys/pvr2d/gstpvrbufferpool.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/applemedia/corevideobuffer.c b/sys/applemedia/corevideobuffer.c index f93624d287..67ed5d8cb3 100644 --- a/sys/applemedia/corevideobuffer.c +++ b/sys/applemedia/corevideobuffer.c @@ -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; diff --git a/sys/pvr2d/gstpvrbufferpool.c b/sys/pvr2d/gstpvrbufferpool.c index 5d6c184a03..fdc68b9522 100644 --- a/sys/pvr2d/gstpvrbufferpool.c +++ b/sys/pvr2d/gstpvrbufferpool.c @@ -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"); -- 2.34.1