mpegstream: Don't use GST_FLOW_IS_SUCCESS()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Aug 2010 16:24:11 +0000 (18:24 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 4 Sep 2010 12:57:51 +0000 (14:57 +0200)
gst/mpegstream/gstdvddemux.c
gst/mpegstream/gstmpegdemux.c
gst/mpegstream/gstmpegparse.c

index c6e915d95aef494e02aeb5c2b62dda22f3d9224a..8faadea4cbe9ba2d69a87a5f5c9c15f1a65d45a8 100644 (file)
@@ -963,7 +963,7 @@ gst_dvd_demux_combine_flows (GstMPEGDemux * mpegdemux, GstMPEGStream * stream,
   stream->last_flow = flow;
 
   /* if it's success we can return the value right away */
-  if (GST_FLOW_IS_SUCCESS (flow))
+  if (flow == GST_FLOW_OK)
     goto done;
 
   /* any other error that is not-linked can be returned right
index ae05efc03191ecca5bd8a59f20c4ade2cc1a855d..142a038fdb2a4ac050f9adc1b0d349434effa0ad 100644 (file)
@@ -954,7 +954,7 @@ gst_mpeg_demux_combine_flows (GstMPEGDemux * demux, GstMPEGStream * stream,
   stream->last_flow = flow;
 
   /* if it's success we can return the value right away */
-  if (GST_FLOW_IS_SUCCESS (flow))
+  if (flow == GST_FLOW_OK)
     goto done;
 
   /* any other error that is not-linked can be returned right
index 2a9d13ccbf90f96fd01ef89cbb773dd4a54453ae..f80b2bf93eb54e1620350f7111b1bcef7e85c2bd 100644 (file)
@@ -837,7 +837,7 @@ gst_mpeg_parse_chain (GstPad * pad, GstBuffer * buffer)
           ", total since SCR: %" G_GINT64_FORMAT ", br: %" G_GINT64_FORMAT
           ", next SCR: %" G_GINT64_FORMAT, size, bss, br, mpeg_parse->next_scr);
     }
-  } while (GST_FLOW_IS_SUCCESS (result));
+  } while (result != GST_FLOW_OK);
 
   if (result != GST_FLOW_OK) {
     GST_DEBUG_OBJECT (mpeg_parse, "flow: %s", gst_flow_get_name (result));