gst/subparse/gstsubparse.c: Don't access already unref'ed buffer.

Original commit message from CVS:
* gst/subparse/gstsubparse.c: (feed_textbuf):
Don't access already unref'ed buffer.
This commit is contained in:
Tim-Philipp Müller 2005-11-29 16:21:13 +00:00
parent c14c78900f
commit 2554dd0d5d
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-11-29 Tim-Philipp Müller <tim at centricular dot net>
* gst/subparse/gstsubparse.c: (feed_textbuf):
Don't access already unref'ed buffer.
2005-11-29 Jan Schmidt <thaytan@mad.scientist.com>
* gst/playback/gststreamselector.c:

View file

@ -537,10 +537,10 @@ feed_textbuf (GstSubparse * self, GstBuffer * buf)
self->textbuf = g_string_append_len (self->textbuf,
(gchar *) GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
gst_buffer_unref (buf);
self->offset = GST_BUFFER_OFFSET (buf) + GST_BUFFER_SIZE (buf);
self->next_offset = self->offset;
gst_buffer_unref (buf);
}
static GstFlowReturn