mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
vah265dec: Fix end_picture() vmethod.
Since commit 88437a9c
the signature of h265decoder's end_picture()
changed to return GstFlowReturn, but vah265dec was not updated.
This commit fixes this regression.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1248>
This commit is contained in:
parent
1912bcbcc4
commit
74c75b1e8b
1 changed files with 4 additions and 4 deletions
|
@ -188,7 +188,7 @@ _submit_previous_slice (GstVaBaseDec * base, GstVaDecodePicture * va_pic)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static GstFlowReturn
|
||||||
gst_va_h265_dec_end_picture (GstH265Decoder * decoder, GstH265Picture * picture)
|
gst_va_h265_dec_end_picture (GstH265Decoder * decoder, GstH265Picture * picture)
|
||||||
{
|
{
|
||||||
GstVaBaseDec *base = GST_VA_BASE_DEC (decoder);
|
GstVaBaseDec *base = GST_VA_BASE_DEC (decoder);
|
||||||
|
@ -210,17 +210,17 @@ gst_va_h265_dec_end_picture (GstH265Decoder * decoder, GstH265Picture * picture)
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
GST_ERROR_OBJECT (self, "Failed to submit the previous slice");
|
GST_ERROR_OBJECT (self, "Failed to submit the previous slice");
|
||||||
return FALSE;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = gst_va_decoder_decode (base->decoder, va_pic);
|
ret = gst_va_decoder_decode (base->decoder, va_pic);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
GST_ERROR_OBJECT (self, "Failed at end picture %p, (poc %d)",
|
GST_ERROR_OBJECT (self, "Failed at end picture %p, (poc %d)",
|
||||||
picture, picture->pic_order_cnt);
|
picture, picture->pic_order_cnt);
|
||||||
return FALSE;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
|
|
Loading…
Reference in a new issue