openh264dec: Don't unref NULL frame on EOS decoding error
This commit is contained in:
parent
5f144ca6ba
commit
a04c48fec1
@ -240,7 +240,6 @@ gst_openh264dec_handle_frame (GstVideoDecoder * decoder,
|
|||||||
memset (&dst_buf_info, 0, sizeof (SBufferInfo));
|
memset (&dst_buf_info, 0, sizeof (SBufferInfo));
|
||||||
ret = openh264dec->decoder->DecodeFrame2 (NULL, 0, yuvdata, &dst_buf_info);
|
ret = openh264dec->decoder->DecodeFrame2 (NULL, 0, yuvdata, &dst_buf_info);
|
||||||
if (ret != dsErrorFree) {
|
if (ret != dsErrorFree) {
|
||||||
gst_video_codec_frame_unref (frame);
|
|
||||||
return GST_FLOW_EOS;
|
return GST_FLOW_EOS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user