mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
amcvideodec: Fix refcount problem with frames being dropped because of decoder bugs
This commit is contained in:
parent
b80764e8b7
commit
f17ebca62a
1 changed files with 2 additions and 1 deletions
|
@ -628,7 +628,8 @@ _find_nearest_frame (GstAmcVideoDec * self, GstClockTime reference_timestamp)
|
||||||
|
|
||||||
if (diff_time > MAX_FRAME_DIST_TIME
|
if (diff_time > MAX_FRAME_DIST_TIME
|
||||||
|| diff_frames > MAX_FRAME_DIST_FRAMES) {
|
|| diff_frames > MAX_FRAME_DIST_FRAMES) {
|
||||||
finish_frames = g_list_prepend (finish_frames, tmp);
|
finish_frames =
|
||||||
|
g_list_prepend (finish_frames, gst_video_codec_frame_ref (tmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue