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:
parent
a819f05851
commit
b88af2e4fe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user