mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 09:15:29 +00:00
rtpvorbispay: fix porting error
This commit is contained in:
parent
86fc8e36dd
commit
5771056ed5
1 changed files with 3 additions and 4 deletions
|
@ -291,11 +291,10 @@ gst_rtp_vorbis_pay_finish_headers (GstBaseRTPPayload * basepayload)
|
||||||
ident = fnv1_hash_32_new ();
|
ident = fnv1_hash_32_new ();
|
||||||
for (walk = rtpvorbispay->headers; walk; walk = g_list_next (walk)) {
|
for (walk = rtpvorbispay->headers; walk; walk = g_list_next (walk)) {
|
||||||
GstBuffer *buf = GST_BUFFER_CAST (walk->data);
|
GstBuffer *buf = GST_BUFFER_CAST (walk->data);
|
||||||
guint bsize;
|
guint bsize, osize;
|
||||||
guint8 *data;
|
guint8 *data;
|
||||||
gsize size;
|
|
||||||
|
|
||||||
bsize = gst_buffer_get_size (buf);
|
bsize = osize = gst_buffer_get_size (buf);
|
||||||
length += bsize;
|
length += bsize;
|
||||||
n_headers++;
|
n_headers++;
|
||||||
|
|
||||||
|
@ -309,7 +308,7 @@ gst_rtp_vorbis_pay_finish_headers (GstBaseRTPPayload * basepayload)
|
||||||
}
|
}
|
||||||
/* update hash */
|
/* update hash */
|
||||||
data = gst_buffer_map (buf, NULL, NULL, GST_MAP_READ);
|
data = gst_buffer_map (buf, NULL, NULL, GST_MAP_READ);
|
||||||
ident = fnv1_hash_32_update (ident, data, size);
|
ident = fnv1_hash_32_update (ident, data, osize);
|
||||||
gst_buffer_unmap (buf, data, -1);
|
gst_buffer_unmap (buf, data, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue