projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdd93fa
)
flacparse: fix unitialized access
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 15 Jun 2011 13:17:19 +0000
(15:17 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 15 Jun 2011 13:17:19 +0000
(15:17 +0200)
gst/audioparsers/gstflacparse.c
patch
|
blob
|
history
diff --git
a/gst/audioparsers/gstflacparse.c
b/gst/audioparsers/gstflacparse.c
index 3b2ff365a6e5d4bcc145351ce4ea290735b48dd5..d4a29609a60a6166f0c21d0e95b0ca750f0efebf 100644
(file)
--- a/
gst/audioparsers/gstflacparse.c
+++ b/
gst/audioparsers/gstflacparse.c
@@
-953,7
+953,7
@@
gst_flac_parse_process_seektable (GstFlacParse * flacparse, gint64 boffset)
"parsing seektable; base offset %" G_GINT64_FORMAT, boffset);
if (boffset <= 0)
- goto
done
;
+ goto
exit
;
data = gst_buffer_map (flacparse->seektable, &bufsize, NULL, GST_MAP_READ);
gst_byte_reader_init (&br, data, bufsize);
@@
-984,6
+984,7
@@
gst_flac_parse_process_seektable (GstFlacParse * flacparse, gint64 boffset)
done:
gst_buffer_unmap (flacparse->seektable, data, bufsize);
+exit:
gst_buffer_unref (flacparse->seektable);
flacparse->seektable = NULL;
}