mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
alpha: fix compiler warnings caused by -DG_DISABLE_ASSERT
This commit is contained in:
parent
68fa8f3417
commit
4a7a78dc9e
1 changed files with 5 additions and 5 deletions
|
@ -397,7 +397,7 @@ gst_alpha_set_property (GObject * object, guint prop_id,
|
||||||
case PROP_PREFER_PASSTHROUGH:{
|
case PROP_PREFER_PASSTHROUGH:{
|
||||||
gboolean prefer_passthrough = g_value_get_boolean (value);
|
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->method == ALPHA_METHOD_SET) && (alpha->alpha == 1.0);
|
||||||
alpha->prefer_passthrough = prefer_passthrough;
|
alpha->prefer_passthrough = prefer_passthrough;
|
||||||
break;
|
break;
|
||||||
|
@ -1425,7 +1425,7 @@ gst_alpha_set_planar_yuv_ayuv (const guint8 * src, guint8 * dest, gint width,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alpha->in_sdtv == alpha->out_sdtv) {
|
if (alpha->in_sdtv == alpha->out_sdtv) {
|
||||||
|
@ -1544,7 +1544,7 @@ gst_alpha_chroma_key_planar_yuv_ayuv (const guint8 * src, guint8 * dest,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alpha->in_sdtv == alpha->out_sdtv) {
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy (matrix,
|
memcpy (matrix,
|
||||||
|
@ -1793,7 +1793,7 @@ gst_alpha_chroma_key_planar_yuv_argb (const guint8 * src, guint8 * dest,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy (matrix,
|
memcpy (matrix,
|
||||||
|
|
Loading…
Reference in a new issue