mxfdemux: Remove useless check
authorEdward Hervey <edward@centricular.com>
Thu, 11 Jan 2018 10:41:33 +0000 (11:41 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 11 Jan 2018 10:41:33 +0000 (11:41 +0100)
Any modification of ret in that "while (ret == GST_FLOW_OK)" loop will
break (and cause it to stop the iteration).

CID #1427095

gst/mxf/mxfdemux.c

index b372f74..eefdf81 100644 (file)
@@ -3349,9 +3349,6 @@ gst_mxf_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * inbuf)
       continue;
     }
 
-    if (G_UNLIKELY (ret != GST_FLOW_OK))
-      break;
-
     /* Need more data */
     if (demux->run_in == -1 && demux->offset < 64 * 1024)
       break;