diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-04-18 18:11:00 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-04-18 18:51:28 +0200 |
commit | 0cb5b42d546538b455ac3bbe90b07e3eb67eb820 (patch) | |
tree | 24b178742be806e745b7a3891aa0d63920c364b4 /gst/videofilter | |
parent | cdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff) |
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'gst/videofilter')
-rw-r--r-- | gst/videofilter/gstvideobalance.c | 7 | ||||
-rw-r--r-- | gst/videofilter/gstvideoflip.c | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c index 2f4ba0b1..7e51ad56 100644 --- a/gst/videofilter/gstvideobalance.c +++ b/gst/videofilter/gstvideobalance.c @@ -259,7 +259,6 @@ gst_video_balance_transform_ip (GstBaseTransform * base, GstBuffer * outbuf) GstVideoBalance *videobalance; guint8 *data; guint size; - gint width, height; videobalance = GST_VIDEO_BALANCE (base); @@ -270,9 +269,6 @@ gst_video_balance_transform_ip (GstBaseTransform * base, GstBuffer * outbuf) data = GST_BUFFER_DATA (outbuf); size = GST_BUFFER_SIZE (outbuf); - width = videobalance->width; - height = videobalance->height; - if (size < videobalance->size) goto wrong_size; @@ -401,7 +397,6 @@ static void gst_video_balance_init (GTypeInstance * instance, gpointer g_class) { GstVideoBalance *videobalance = GST_VIDEO_BALANCE (instance); - GstVideoFilter *videofilter; char *channels[4] = { "HUE", "SATURATION", "BRIGHTNESS", "CONTRAST" }; @@ -409,8 +404,6 @@ gst_video_balance_init (GTypeInstance * instance, gpointer g_class) GST_DEBUG ("gst_video_balance_init"); - videofilter = GST_VIDEO_FILTER (videobalance); - /* do stuff */ videobalance->contrast = DEFAULT_PROP_CONTRAST; videobalance->brightness = DEFAULT_PROP_BRIGHTNESS; diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c index 051805c5..d31758bc 100644 --- a/gst/videofilter/gstvideoflip.c +++ b/gst/videofilter/gstvideoflip.c @@ -564,11 +564,9 @@ gst_video_flip_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { GstVideoFlip *videoflip; - GstVideoFilter *videofilter; g_return_if_fail (GST_IS_VIDEO_FLIP (object)); videoflip = GST_VIDEO_FLIP (object); - videofilter = GST_VIDEO_FILTER (object); switch (prop_id) { case ARG_METHOD: |