summaryrefslogtreecommitdiff
path: root/ext/cog
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-07-12 18:16:54 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-07-12 18:16:54 -0400
commit27b8c96391f9658abea979c11d4467eefc739e6b (patch)
tree4e89c2b6bc3f1f2b2bee8421cd14726e78924ff2 /ext/cog
parentd369f620de9b0bf828314df3dfbf44650a93d755 (diff)
downloadgstreamer-plugins-bad-27b8c96391f9658abea979c11d4467eefc739e6b.tar.gz
cog: Fix set-but-unused warnings
Diffstat (limited to 'ext/cog')
-rw-r--r--ext/cog/cogvirtframe.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/cog/cogvirtframe.c b/ext/cog/cogvirtframe.c
index 0fc0ad129..e6d08e551 100644
--- a/ext/cog/cogvirtframe.c
+++ b/ext/cog/cogvirtframe.c
@@ -520,12 +520,11 @@ cog_virt_frame_render_resample_vert_1tap (CogFrame * frame, void *_dest,
int n_src;
int scale = frame->param1;
int acc;
- int x;
int src_i;
acc = scale * i;
src_i = acc >> 8;
- x = acc & 0xff;
+ /* x = acc & 0xff; */
n_src = frame->virt_frame1->components[component].height;
src1 = cog_virt_frame_get_line (frame->virt_frame1, component,
@@ -634,10 +633,9 @@ cog_virt_frame_render_resample_horiz_1tap (CogFrame * frame, void *_dest,
{
uint8_t *dest = _dest;
uint8_t *src;
- int n_src;
int scale = frame->param1;
- n_src = frame->virt_frame1->components[component].width;
+ /* n_src = frame->virt_frame1->components[component].width; */
src = cog_virt_frame_get_line (frame->virt_frame1, component, i);
cogorc_resample_horiz_1tap (dest, src, 0, scale,
@@ -650,10 +648,9 @@ cog_virt_frame_render_resample_horiz_2tap (CogFrame * frame, void *_dest,
{
uint8_t *dest = _dest;
uint8_t *src;
- int n_src;
int scale = frame->param1;
- n_src = frame->virt_frame1->components[component].width;
+ /* n_src = frame->virt_frame1->components[component].width; */
src = cog_virt_frame_get_line (frame->virt_frame1, component, i);
cogorc_resample_horiz_2tap (dest, src, 0, scale,