summaryrefslogtreecommitdiffstats
path: root/sys
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 /sys
parentcdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff)
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'sys')
-rw-r--r--sys/ximage/gstximagesrc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index 15288122..77893f4e 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -933,7 +933,7 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
{
GstXImageSrc *s = GST_XIMAGE_SRC (bs);
GstXContext *xcontext;
- gint x, y, width, height;
+ gint width, height;
if ((!s->xcontext) && (!gst_ximage_src_open_display (s, s->display_name)))
return
@@ -947,7 +947,6 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
xcontext = s->xcontext;
- x = y = 0;
width = xcontext->width;
height = xcontext->height;
if (s->endx > s->startx && s->endy > s->starty) {
@@ -955,8 +954,6 @@ gst_ximage_src_get_caps (GstBaseSrc * bs)
if (s->startx < xcontext->width && s->endx < xcontext->width &&
s->starty < xcontext->height && s->endy < xcontext->height) {
/* values are fine */
- x = s->startx;
- y = s->starty;
s->width = width = s->endx - s->startx;
s->height = height = s->endy - s->starty;
} else {