From: Tim-Philipp Müller Date: Fri, 9 Mar 2007 10:49:53 +0000 (+0000) Subject: gst/subparse/gstsubparse.c: Break out of loop in chain function as soon as possible... X-Git-Tag: 1.19.3~511^2~11279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3eba8b10e21fd5bf2937fd8748bc51157833cec8;p=platform%2Fupstream%2Fgstreamer.git gst/subparse/gstsubparse.c: Break out of loop in chain function as soon as possible if we get a non-OK flow return. Original commit message from CVS: * gst/subparse/gstsubparse.c: (handle_buffer): Break out of loop in chain function as soon as possible if we get a non-OK flow return. --- diff --git a/ChangeLog b/ChangeLog index 784609d..f055270 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-09 Tim-Philipp Müller + + * gst/subparse/gstsubparse.c: (handle_buffer): + Break out of loop in chain function as soon as possible if we get + a non-OK flow return. + 2007-03-08 Jan Schmidt * tests/check/elements/alsa.c: (GST_START_TEST): diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 138ef46..b1605b1 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -978,8 +978,10 @@ handle_buffer (GstSubParse * self, GstBuffer * buf) g_free (subtitle); subtitle = NULL; - if (GST_FLOW_IS_FATAL (ret)) + if (ret != GST_FLOW_OK) { + GST_DEBUG_OBJECT (self, "flow: %s", gst_flow_get_name (ret)); break; + } } }