From: Sebastian Dröge Date: Fri, 27 Aug 2010 16:24:11 +0000 (+0200) Subject: mpegstream: Don't use GST_FLOW_IS_SUCCESS() X-Git-Tag: RELEASE-0.10.17~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e99cb46c60d843dfa80dc3caf9d9a804dc281a7b;p=platform%2Fupstream%2Fgst-plugins-ugly.git mpegstream: Don't use GST_FLOW_IS_SUCCESS() --- diff --git a/gst/mpegstream/gstdvddemux.c b/gst/mpegstream/gstdvddemux.c index c6e915d9..8faadea4 100644 --- a/gst/mpegstream/gstdvddemux.c +++ b/gst/mpegstream/gstdvddemux.c @@ -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 diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index ae05efc0..142a038f 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -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 diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index 2a9d13cc..f80b2bf9 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -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));