Skip to content

msdkdec: fix assertion 'frame->ref_count > 0' failed

Can happen if the oldest frame is the current frame and if gst_video_decoder_finish_frame failed in which case the current is unref and then drop instead of just drop. This patch also removes some assumptions, it was strange to call unref and finish_frame in gst_msdkdec_finish_task. In principle when owning a frame, the code should either unref, or drop or finish.

Edited by Julien Isorce

Merge request reports