summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2015-10-09 02:36:57 +0100
committerLionel Landwerlin <llandwerlin@gmail.com>2015-10-09 02:36:57 +0100
commit8dfdcfa10874702040d0fe7b37021d77960eecd9 (patch)
treea089d7011258a8c240d4f77dc2e3d7682f6fff7d
parent0ad26dd9b4ba62191bf0416c316df3bae03aef19 (diff)
downloadclutter-gst-8dfdcfa10874702040d0fe7b37021d77960eecd9.tar.gz
video-sink: nv12: use macros rather than structure fields
-rw-r--r--clutter-gst/clutter-gst-video-sink.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 714110b..c40e6e9 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -1673,19 +1673,19 @@ clutter_gst_nv12_upload (ClutterGstVideoSink *sink,
priv->frame[0] =
video_texture_new_from_data (priv->ctx,
- GST_VIDEO_INFO_COMP_WIDTH (&priv->info, 0),
- GST_VIDEO_INFO_COMP_HEIGHT (&priv->info, 0),
+ GST_VIDEO_FRAME_COMP_WIDTH (&frame, 0),
+ GST_VIDEO_FRAME_COMP_HEIGHT (&frame, 0),
COGL_PIXEL_FORMAT_A_8,
- priv->info.stride[0],
- frame.data[0]);
+ GST_VIDEO_FRAME_COMP_STRIDE (&frame, 0),
+ GST_VIDEO_FRAME_COMP_DATA (&frame, 0));
priv->frame[1] =
video_texture_new_from_data (priv->ctx,
- GST_VIDEO_INFO_COMP_WIDTH (&priv->info, 1),
- GST_VIDEO_INFO_COMP_HEIGHT (&priv->info, 1),
+ GST_VIDEO_FRAME_COMP_WIDTH (&frame, 1),
+ GST_VIDEO_FRAME_COMP_HEIGHT (&frame, 1),
COGL_PIXEL_FORMAT_RG_88,
- priv->info.stride[1],
- frame.data[1]);
+ GST_VIDEO_FRAME_COMP_STRIDE (&frame, 1),
+ GST_VIDEO_FRAME_COMP_DATA (&frame, 1));
gst_video_frame_unmap (&frame);