mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
gstreamer: Use static compile check
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
763dc98c09
commit
2f17d4745e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user