mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
Fix refcount bug
This commit is contained in:
parent
b63c58e850
commit
911ca50971
1 changed files with 3 additions and 0 deletions
|
@ -553,6 +553,9 @@ _find_nearest_frame (GstAmcVideoDec * self, GstClockTime reference_timestamp)
|
|||
}
|
||||
}
|
||||
|
||||
if (best)
|
||||
gst_video_codec_frame_ref (best);
|
||||
|
||||
g_list_foreach (frames, (GFunc) gst_video_codec_frame_unref, NULL);
|
||||
g_list_free (frames);
|
||||
|
||||
|
|
Loading…
Reference in a new issue