subparse: don't leak line, if flushing

This commit is contained in:
Stefan Kost 2009-02-26 16:09:03 +02:00
parent e95bbca65f
commit 46833b9bc7

View file

@ -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 */