openh264dec: On ::finish() stop trying if the decoder returned that no output is available

This commit is contained in:
Sebastian Dröge 2014-10-03 17:20:28 +03:00
parent 088cf16bf9
commit bc8e1465dc

View file

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