mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vorbisdec: Avoid an unnecessary memory allocation in vorbiscomment handling.
This commit is contained in:
parent
e7d4250fc3
commit
77874292a3
1 changed files with 2 additions and 1 deletions
|
@ -693,8 +693,9 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet)
|
|||
|
||||
GST_DEBUG_OBJECT (vd, "parsing comment packet");
|
||||
|
||||
buf = gst_buffer_new_and_alloc (packet->bytes);
|
||||
buf = gst_buffer_new ();
|
||||
GST_BUFFER_DATA (buf) = packet->packet;
|
||||
GST_BUFFER_SIZE (buf) = packet->bytes;
|
||||
|
||||
list =
|
||||
gst_tag_list_from_vorbiscomment_buffer (buf, (guint8 *) "\003vorbis", 7,
|
||||
|
|
Loading…
Reference in a new issue