mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
mpegtsmux: fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=678130
This commit is contained in:
parent
d7ad4ce890
commit
9ad3761148
1 changed files with 2 additions and 0 deletions
|
@ -1549,6 +1549,8 @@ new_packet_cb (GstBuffer * buf, void *user_data, gint64 new_pcr)
|
||||||
/* do common init (flags and streamheaders) */
|
/* do common init (flags and streamheaders) */
|
||||||
new_packet_common_init (mux, buf, map.data + offset, map.size);
|
new_packet_common_init (mux, buf, map.data + offset, map.size);
|
||||||
|
|
||||||
|
gst_buffer_unmap (buf, &map);
|
||||||
|
|
||||||
/* all is meant for downstream, including any prefix */
|
/* all is meant for downstream, including any prefix */
|
||||||
if (offset)
|
if (offset)
|
||||||
return new_packet_m2ts (mux, buf, new_pcr);
|
return new_packet_m2ts (mux, buf, new_pcr);
|
||||||
|
|
Loading…
Reference in a new issue