From 911ca50971bb9bd5b7ae0b3af30aa11c5f1b8ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 6 Sep 2012 17:07:49 +0200 Subject: [PATCH] Fix refcount bug --- sys/androidmedia/gstamcvideodec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 8cd1838a05..1d4e2282be 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -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);