From 4a7a78dc9e8049756960c21d296596616046f512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 7 Jan 2011 02:32:20 +0000 Subject: [PATCH] alpha: fix compiler warnings caused by -DG_DISABLE_ASSERT --- gst/alpha/gstalpha.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index fd9b851d68..d72c8c5b1e 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -397,7 +397,7 @@ gst_alpha_set_property (GObject * object, guint prop_id, case PROP_PREFER_PASSTHROUGH:{ gboolean prefer_passthrough = g_value_get_boolean (value); - reconfigure = ((!!prefer_passthrough) != (!!alpha->prefer_passthrough)) + reconfigure = ((! !prefer_passthrough) != (! !alpha->prefer_passthrough)) && (alpha->method == ALPHA_METHOD_SET) && (alpha->alpha == 1.0); alpha->prefer_passthrough = prefer_passthrough; break; @@ -1425,7 +1425,7 @@ gst_alpha_set_planar_yuv_ayuv (const guint8 * src, guint8 * dest, gint width, break; default: g_assert_not_reached (); - break; + return; } if (alpha->in_sdtv == alpha->out_sdtv) { @@ -1544,7 +1544,7 @@ gst_alpha_chroma_key_planar_yuv_ayuv (const guint8 * src, guint8 * dest, break; default: g_assert_not_reached (); - break; + return; } if (alpha->in_sdtv == alpha->out_sdtv) { @@ -1685,7 +1685,7 @@ gst_alpha_set_planar_yuv_argb (const guint8 * src, guint8 * dest, gint width, break; default: g_assert_not_reached (); - break; + return; } memcpy (matrix, @@ -1793,7 +1793,7 @@ gst_alpha_chroma_key_planar_yuv_argb (const guint8 * src, guint8 * dest, break; default: g_assert_not_reached (); - break; + return; } memcpy (matrix,