diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-01-02 16:06:18 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-01-03 09:08:19 +0100 |
commit | c727e5b6d6944851d1dd19b3b45eabefb039d899 (patch) | |
tree | 8a22cd424145dd780e9c9b0978bcc8bcbe0e3470 /gst-libs/gst/vaapi/gstvaapicodec_objects.c | |
parent | 3d3f37c55841861d5eee5628dde9d5ebbdf4a9ed (diff) | |
download | gst-vaapi-c727e5b6d6944851d1dd19b3b45eabefb039d899.tar.gz |
decoder: drop useless checks for codec objects.
Codec objects are used internally only and they are bound to be created
with a valid GstVaapiDecoder object.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapicodec_objects.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapicodec_objects.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapicodec_objects.c b/gst-libs/gst/vaapi/gstvaapicodec_objects.c index 450e50eb..eddd7bd6 100644 --- a/gst-libs/gst/vaapi/gstvaapicodec_objects.c +++ b/gst-libs/gst/vaapi/gstvaapicodec_objects.c @@ -75,8 +75,6 @@ gst_vaapi_codec_object_new(const GstVaapiCodecObjectClass *object_class, GstVaapiCodecObject *va_obj; GstVaapiCodecObjectConstructorArgs args; - g_return_val_if_fail(codec != NULL, NULL); - obj = gst_vaapi_mini_object_new0(&object_class->parent_class); if (!obj) return NULL; @@ -139,8 +137,6 @@ gst_vaapi_iq_matrix_new( { GstVaapiCodecObject *object; - g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), NULL); - object = gst_vaapi_codec_object_new( &GstVaapiIqMatrixClass, GST_VAAPI_CODEC_BASE(decoder), @@ -188,8 +184,6 @@ gst_vaapi_bitplane_new(GstVaapiDecoder *decoder, guint8 *data, guint data_size) { GstVaapiCodecObject *object; - g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), NULL); - object = gst_vaapi_codec_object_new( &GstVaapiBitPlaneClass, GST_VAAPI_CODEC_BASE(decoder), @@ -241,8 +235,6 @@ gst_vaapi_huffman_table_new( { GstVaapiCodecObject *object; - g_return_val_if_fail(GST_VAAPI_IS_DECODER(decoder), NULL); - object = gst_vaapi_codec_object_new( &GstVaapiHuffmanTableClass, GST_VAAPI_CODEC_BASE(decoder), |