summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-08-09 09:30:10 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-08-11 11:24:49 +0100
commit2f17d4745e97d2b6b60c2630cca1de76e85428ff (patch)
tree4d109a95ec39a11faa5874ec38417efb70ef80fd /server
parent763dc98c09976bbc3fbb7785467b4992c17dc9ef (diff)
gstreamer: Use static compile check
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/gstreamer-encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c
index e6790af9..b7de50cc 100644
--- a/server/gstreamer-encoder.c
+++ b/server/gstreamer-encoder.c
@@ -1681,7 +1681,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);