mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
c14c78900f
commit
2554dd0d5d
2 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue