gst-plugins-bad - mpegtsmux - duplicate code and memory leak

Ilya Averyanov averyanovin at gmail.com
Sun Mar 1 14:15:14 PST 2015


http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsmux/mpegtsmux.c#n315
call
mux->tsmux = tsmux_new ();
tsmux_set_write_func (mux->tsmux, new_packet_cb, mux);

in http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsmux/mpegtsmux.c#n330
call
mpegtsmux_reset
which also call
 mux->tsmux = tsmux_new ();
 tsmux_set_write_func (mux->tsmux, new_packet_cb, mux);
and rewrite pointer mux->tsmux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mpegtsmux-Remove-duplicate-code.patch
Type: application/octet-stream
Size: 826 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150302/e2ac0b93/attachment.obj>


More information about the gstreamer-devel mailing list