msdkdec: Correct return value of GstVideoDecoder::flush()

Use boolean instead of GstFlowReturn as declared.
Note that since base class does not check return value of GstVideoDecoder::flush(),
this would not cause any change of behavior.
This commit is contained in:
Seungha Yang 2020-01-02 12:22:07 +09:00
parent a819f05851
commit b88af2e4fe

View file

@ -1500,8 +1500,11 @@ static gboolean
gst_msdkdec_flush (GstVideoDecoder * decoder)
{
GstMsdkDec *thiz = GST_MSDKDEC (decoder);
GstFlowReturn ret;
return gst_msdkdec_drain (GST_VIDEO_DECODER_CAST (thiz));
ret = gst_msdkdec_drain (GST_VIDEO_DECODER_CAST (thiz));
return ret == GST_FLOW_OK;
}
static GstFlowReturn