Memory leak in mpegtsmux
Submitted by Nastooh
Link to original bug (#794551)
Description
Under Ubuntu 14.04, specifying pids in mpegtsmux
program-map, causes memory leak, e.g. the following pipeline leaks: (As
seen by "top")
gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 !
videoconvert ! openh264enc ! h264parse ! muxer.sink_49 mpegtsmux
name=muxer prog-map=program_map,sink_49=1 ! fakesink
Whereas, this pipeline does not:
gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 !
videoconvert ! openh264enc ! h264parse ! mpegtsmux name=muxer ! fakesink
It gets a bit more complicated: If pid is a 3 digit number,
no leaks are detected, i.e., the folowing pipeline does not leak:
gst-launch-1.0 videotestsrc is-live=true pattern=zone-plate kx2=20
ky2=20 kxy=4 kt2=10 ! video/x-raw, format=I420,width=1280,height=720 !
videoconvert ! openh264enc ! h264parse ! muxer.sink_149 mpegtsmux
name=muxer prog-map=program_map,sink_149=1 ! fakesink
(Similar results holds for msdkh265 encoder.)
Version: 1.12.x