[Spice-devel] [PATCH 3/7] gstreamer: Use static compile check
Pavel Grunt
pgrunt at redhat.com
Thu Aug 11 09:49:45 UTC 2016
On Thu, 2016-08-11 at 09:50 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> server/gstreamer-encoder.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c
> index cdd9696..7376d2b 100644
> --- a/server/gstreamer-encoder.c
> +++ b/server/gstreamer-encoder.c
> @@ -1688,7 +1688,7 @@ VideoEncoder *gstreamer_encoder_new(SpiceVideoCodecType
> codec_type,
> bitmap_ref_t bitmap_ref,
> bitmap_unref_t bitmap_unref)
> {
> - spice_return_val_if_fail(SPICE_GST_FRAME_STATISTICS_COUNT <=
> SPICE_GST_HISTORY_SIZE, NULL);
> + verify(SPICE_GST_FRAME_STATISTICS_COUNT <= SPICE_GST_HISTORY_SIZE);
> spice_return_val_if_fail(codec_type == SPICE_VIDEO_CODEC_TYPE_MJPEG ||
> codec_type == SPICE_VIDEO_CODEC_TYPE_VP8 ||
> codec_type == SPICE_VIDEO_CODEC_TYPE_H264,
> NULL);
More information about the Spice-devel
mailing list