summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-04-19 14:14:35 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-04-19 14:14:35 +0200
commit04a261044467d13eb077ccf2f27aeb4a619cb0b6 (patch)
tree93ebc23884ff0553e91c8d6c3465349f0adca920 /sys
parentc84108de3c240bd57401236ad332001f0f50a62c (diff)
video: improve frame_flags
Rename the frame_flags to flags. Because they are flags on the frame object it does not need the redundant frame_ prefix. Change the order of the metadata constructor so that the flags come before the format and dimension arguments.
Diffstat (limited to 'sys')
-rw-r--r--sys/ximage/ximagepool.c4
-rw-r--r--sys/xvimage/xvimagepool.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c
index d4729951e..e0f41d43b 100644
--- a/sys/ximage/ximagepool.c
+++ b/sys/ximage/ximagepool.c
@@ -580,8 +580,8 @@ ximage_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 (ximage, GST_VIDEO_INFO_FORMAT (info),
- GST_VIDEO_FRAME_FLAG_NONE, priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (ximage, GST_VIDEO_FRAME_FLAG_NONE,
+ GST_VIDEO_INFO_FORMAT (info), priv->padded_width, priv->padded_height);
if (priv->need_alignment) {
gint vpad, hpad, pstride;
diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c
index ccd7cceab..5be8d6be1 100644
--- a/sys/xvimage/xvimagepool.c
+++ b/sys/xvimage/xvimagepool.c
@@ -631,8 +631,8 @@ xvimage_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 (xvimage, GST_VIDEO_INFO_FORMAT (info),
- GST_VIDEO_FRAME_FLAG_NONE, priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (xvimage, GST_VIDEO_FRAME_FLAG_NONE,
+ GST_VIDEO_INFO_FORMAT (info), priv->padded_width, priv->padded_height);
if (priv->need_alignment) {
meta->width = GST_VIDEO_INFO_WIDTH (&priv->info);