openh264dec: Remove useless check
authorEdward Hervey <edward@centricular.com>
Wed, 3 Jan 2018 15:07:24 +0000 (16:07 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 3 Jan 2018 15:07:24 +0000 (16:07 +0100)
We are sure to have a frame at this point

CID #1427138

ext/openh264/gstopenh264dec.cpp

index 4cabfe4..a7910f0 100644 (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;