openh264dec: Remove useless check

We are sure to have a frame at this point

CID #1427138
This commit is contained in:
Edward Hervey 2018-01-03 16:07:24 +01:00 committed by Edward Hervey
parent c4b0bdb556
commit 80b17c179a

View file

@ -260,7 +260,7 @@ gst_openh264dec_handle_frame (GstVideoDecoder * decoder,
/* No output available yet */
if (dst_buf_info.iBufferStatus != 1) {
gst_video_codec_frame_unref (frame);
return (frame ? GST_FLOW_OK : GST_FLOW_EOS);
return GST_FLOW_OK;
}
actual_width = dst_buf_info.UsrData.sSystemBuffer.iWidth;