mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
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.
This commit is contained in:
parent
2e8949d77b
commit
7d1b583d91
1 changed files with 3 additions and 3 deletions
|
@ -282,8 +282,8 @@ error_create_buffer:
|
||||||
gst_vaapi_surface_get_id(GST_VAAPI_SURFACE_PROXY_SURFACE(proxy));
|
gst_vaapi_surface_get_id(GST_VAAPI_SURFACE_PROXY_SURFACE(proxy));
|
||||||
|
|
||||||
GST_DEBUG("video sink failed to create video buffer for proxy'ed "
|
GST_DEBUG("video sink failed to create video buffer for proxy'ed "
|
||||||
"surface %" GST_VAAPI_ID_FORMAT " (error %d)",
|
"surface %" GST_VAAPI_ID_FORMAT,
|
||||||
GST_VAAPI_ID_ARGS(surface_id), ret);
|
GST_VAAPI_ID_ARGS(surface_id));
|
||||||
g_object_unref(proxy);
|
g_object_unref(proxy);
|
||||||
return GST_FLOW_UNEXPECTED;
|
return GST_FLOW_UNEXPECTED;
|
||||||
}
|
}
|
||||||
|
@ -367,7 +367,7 @@ static void
|
||||||
gst_vaapidecode_destroy(GstVaapiDecode *decode)
|
gst_vaapidecode_destroy(GstVaapiDecode *decode)
|
||||||
{
|
{
|
||||||
if (decode->decoder) {
|
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);
|
g_object_unref(decode->decoder);
|
||||||
decode->decoder = NULL;
|
decode->decoder = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue