summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-17 14:52:35 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-11-16 16:49:15 +0100
commitc8cd9bd2ca75b6cca09afff4f48ad2bb532e7b69 (patch)
treec73725256941896824a36d413a3ead56405e2e7f
parent8ef1f016e41a66ea132e4b526e582f3e2884b0c4 (diff)
vaapidecode: fix compiler warnings.
Don't care of the return value for gst_vaapi_decoder_put_buffer() during destruction of the element. Don't print out (uninitialised) error code when allocation of video buffer failed.
-rw-r--r--gst/vaapi/gstvaapidecode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index 100ca528..d6bd0971 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -282,8 +282,8 @@ error_create_buffer:
gst_vaapi_surface_get_id(GST_VAAPI_SURFACE_PROXY_SURFACE(proxy));
GST_DEBUG("video sink failed to create video buffer for proxy'ed "
- "surface %" GST_VAAPI_ID_FORMAT " (error %d)",
- GST_VAAPI_ID_ARGS(surface_id), ret);
+ "surface %" GST_VAAPI_ID_FORMAT,
+ GST_VAAPI_ID_ARGS(surface_id));
g_object_unref(proxy);
return GST_FLOW_UNEXPECTED;
}
@@ -367,7 +367,7 @@ static void
gst_vaapidecode_destroy(GstVaapiDecode *decode)
{
if (decode->decoder) {
- gst_vaapi_decoder_put_buffer(decode->decoder, NULL);
+ (void)gst_vaapi_decoder_put_buffer(decode->decoder, NULL);
g_object_unref(decode->decoder);
decode->decoder = NULL;
}