summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-23 18:19:24 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-23 19:01:34 +0200
commit3c751b2dfdaa7c32b5d6091bc58fdcf47b558eb9 (patch)
treec982f98bdb9cce7697b4026d38b7dde7c059f08a /tests
parent809c7e097b62166ab51caf666d1bf810a952e354 (diff)
tests: cope with GST_VAAPI_IS_xxx() macros removal.
Diffstat (limited to 'tests')
-rw-r--r--tests/decoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/decoder.c b/tests/decoder.c
index b2ca16e2..b051f46b 100644
--- a/tests/decoder.c
+++ b/tests/decoder.c
@@ -144,7 +144,7 @@ decoder_put_buffers(GstVaapiDecoder *decoder)
GstBuffer *buffer;
gboolean success;
- g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), FALSE);
+ g_return_val_if_fail(decoder != NULL, FALSE);
codec = get_codec_defs(decoder);
g_return_val_if_fail(codec != NULL, FALSE);
@@ -178,7 +178,7 @@ decoder_get_surface(GstVaapiDecoder *decoder)
GstVaapiSurfaceProxy *proxy;
GstVaapiDecoderStatus status;
- g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), NULL);
+ g_return_val_if_fail(decoder != NULL, NULL);
status = gst_vaapi_decoder_get_surface(decoder, &proxy);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS) {
@@ -198,7 +198,7 @@ decoder_get_codec_name(GstVaapiDecoder *decoder)
{
const CodecDefs *codec;
- g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), NULL);
+ g_return_val_if_fail(decoder != NULL, NULL);
codec = get_codec_defs(decoder);
g_return_val_if_fail(codec != NULL, FALSE);