From: Matthew Waters Date: Sun, 27 Mar 2022 22:50:38 +0000 (+1100) Subject: osxvideosink: fix unused-but-set-variable warning X-Git-Tag: 1.22.0~2028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa6c674dd863e479ca61417941e8fe4794904c3c;p=platform%2Fupstream%2Fgstreamer.git osxvideosink: fix unused-but-set-variable warning ../sys/osxvideo/osxvideosink.m:859:11: error: variable 'data' set but not used [-Werror,-Wunused-but-set-variable] guint8 *data, *readp, *writep; ^ Part-of: --- diff --git a/subprojects/gst-plugins-good/sys/osxvideo/osxvideosink.m b/subprojects/gst-plugins-good/sys/osxvideo/osxvideosink.m index ef2ef38..b2c905c 100644 --- a/subprojects/gst-plugins-good/sys/osxvideo/osxvideosink.m +++ b/subprojects/gst-plugins-good/sys/osxvideo/osxvideosink.m @@ -856,7 +856,7 @@ gst_osx_video_sink_get_type (void) - (void) showFrame: (GstBufferObject *) object { GstVideoFrame frame; - guint8 *data, *readp, *writep; + guint8 *readp, *writep; gint i, active_width, stride; guint8 *texture_buffer; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -873,7 +873,7 @@ gst_osx_video_sink_get_type (void) if (!gst_video_frame_map (&frame, &osxvideosink->info, buf, GST_MAP_READ)) goto no_map; - data = readp = GST_VIDEO_FRAME_PLANE_DATA (&frame, 0); + readp = GST_VIDEO_FRAME_PLANE_DATA (&frame, 0); stride = GST_VIDEO_FRAME_PLANE_STRIDE (&frame, 0); writep = texture_buffer; active_width = GST_VIDEO_SINK_WIDTH (osxvideosink) * sizeof (short);