From 60847e48d7d0bd7a5249e416e32aacc3f2914263 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 26 Feb 2009 15:53:10 +0200 Subject: [PATCH] ffmpegcolorspace: remove unused code/variables --- gst/ffmpegcolorspace/gstffmpegcolorspace.c | 6 ------ gst/ffmpegcolorspace/imgconvert.c | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gst/ffmpegcolorspace/gstffmpegcolorspace.c b/gst/ffmpegcolorspace/gstffmpegcolorspace.c index 92cfad9ef3..0b1ec10ba9 100644 --- a/gst/ffmpegcolorspace/gstffmpegcolorspace.c +++ b/gst/ffmpegcolorspace/gstffmpegcolorspace.c @@ -139,12 +139,9 @@ static GstCaps * gst_ffmpegcsp_transform_caps (GstBaseTransform * btrans, GstPadDirection direction, GstCaps * caps) { - GstFFMpegCsp *space; GstCaps *template; GstCaps *result; - space = GST_FFMPEGCSP (btrans); - template = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL); result = gst_caps_intersect (caps, template); gst_caps_unref (template); @@ -379,7 +376,6 @@ static gboolean gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps, guint * size) { - GstFFMpegCsp *space = NULL; GstStructure *structure = NULL; AVCodecContext *ctx = NULL; gboolean ret = TRUE; @@ -387,8 +383,6 @@ gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps, g_assert (size); - space = GST_FFMPEGCSP (btrans); - structure = gst_caps_get_structure (caps, 0); gst_structure_get_int (structure, "width", &width); gst_structure_get_int (structure, "height", &height); diff --git a/gst/ffmpegcolorspace/imgconvert.c b/gst/ffmpegcolorspace/imgconvert.c index 5e72e140e0..010ccd53bc 100644 --- a/gst/ffmpegcolorspace/imgconvert.c +++ b/gst/ffmpegcolorspace/imgconvert.c @@ -722,7 +722,7 @@ img_copy (AVPicture * dst, const AVPicture * src, int pix_fmt, int width, int height) { int bwidth, bits, i; - PixFmtInfo *pf = get_pix_fmt_info (pix_fmt); + const PixFmtInfo *pf; pf = get_pix_fmt_info (pix_fmt); switch (pf->pixel_type) { @@ -2831,7 +2831,7 @@ get_alpha_info_pal8 (const AVPicture * src, int width, int height) int img_get_alpha_info (const AVPicture * src, int pix_fmt, int width, int height) { - PixFmtInfo *pf = get_pix_fmt_info (pix_fmt); + const PixFmtInfo *pf; int ret; pf = get_pix_fmt_info (pix_fmt); -- 2.34.1