From 46833b9bc7f746882e85d0f3db86020aab2b8dae Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 26 Feb 2009 16:09:03 +0200 Subject: [PATCH] subparse: don't leak line, if flushing --- gst/subparse/gstsubparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index bba1e08..a529828 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -1170,7 +1170,7 @@ handle_buffer (GstSubParse * self, GstBuffer * buf) gst_caps_unref (caps); } - while ((line = get_next_line (self)) && !self->flushing) { + while (!self->flushing && (line = get_next_line (self))) { guint offset = 0; /* Set segment on our parser state machine */ -- 2.7.4