[clutter-gst/clutter-gst-3.0] video-sink: nv12: use macros rather than structure fields
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: nv12: use macros rather than structure fields
- Date: Fri, 9 Oct 2015 01:58:21 +0000 (UTC)
commit 8dfdcfa10874702040d0fe7b37021d77960eecd9
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Fri Oct 9 02:36:57 2015 +0100
video-sink: nv12: use macros rather than structure fields
clutter-gst/clutter-gst-video-sink.c | 16 ++++++++--------
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]