summaryrefslogtreecommitdiffstats
path: root/gst/smpte
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:11:00 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:28 +0200
commit0cb5b42d546538b455ac3bbe90b07e3eb67eb820 (patch)
tree24b178742be806e745b7a3891aa0d63920c364b4 /gst/smpte
parentcdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff)
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'gst/smpte')
-rw-r--r--gst/smpte/gstsmptealpha.c3
-rw-r--r--gst/smpte/paint.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c
index d7817f45..61b4b0b1 100644
--- a/gst/smpte/gstsmptealpha.c
+++ b/gst/smpte/gstsmptealpha.c
@@ -346,14 +346,11 @@ static gboolean
gst_smpte_alpha_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
- GstSMPTEAlpha *smpte;
GstStructure *structure;
gboolean ret;
gint width, height;
guint32 fourcc;
- smpte = GST_SMPTE_ALPHA (btrans);
-
structure = gst_caps_get_structure (caps, 0);
ret = gst_structure_get_int (structure, "width", &width);
diff --git a/gst/smpte/paint.c b/gst/smpte/paint.c
index 25f82ea4..7c2ba0dc 100644
--- a/gst/smpte/paint.c
+++ b/gst/smpte/paint.c
@@ -263,10 +263,9 @@ gst_smpte_paint_triangle_clock (guint32 * dest, gint stride,
{
gint i;
gint sign;
- gfloat angle, angle_s, angle_e;
+ gfloat angle, angle_e;
gfloat len1;
- angle_s = 0.0;
angle_e = acos (((x1 - x0) * (x2 - x0) + (y1 - y0) * (y2 - y0)) /
(sqrt ((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) *
sqrt ((x2 - x0) * (x2 - x0) + (y2 - y0) * (y2 - y0))));