projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95bbca
)
subparse: don't leak line, if flushing
author
Stefan Kost
<ensonic@users.sf.net>
Thu, 26 Feb 2009 14:09:03 +0000
(16:09 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Thu, 26 Feb 2009 16:01:05 +0000
(18:01 +0200)
gst/subparse/gstsubparse.c
patch
|
blob
|
history
diff --git
a/gst/subparse/gstsubparse.c
b/gst/subparse/gstsubparse.c
index
bba1e08
..
a529828
100644
(file)
--- 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 */