Skip to content

codecs: mpeg2decoder: Move frame_unref to handle_frame.

He Junyan requested to merge He_Junyan/gst-plugins-bad:unref_frame_mpeg2 into master

In the current code, we call frame_unref only when the frame is outputted. This is OK for normal playback, but when seek happens, the frames stored in DPB is not outputted and causes some memory leak. The correct way is that we should call frame_unref every time we finish the handle_frame(), which is also the behaviour of H264/H265 decoder.

Merge request reports