vdpauh264dec: don't use deprecated g_ptr_array_free incase glib >= 2.22

This commit is contained in:
Carl-Anton Ingmarsson 2010-06-28 12:00:55 +02:00
parent 0aa4d01c0f
commit 380ec88b4c

View file

@ -53,7 +53,12 @@ static void
gst_h264_frame_finalize (GstH264Frame * h264_frame)
{
g_ptr_array_foreach (h264_frame->slices, (GFunc) gst_buffer_unref, NULL);
#if GLIB_CHECK_VERSION (2,22,0)
g_ptr_array_unref (h264_frame->slices);
#else
g_ptr_array_free (h264_frame->slices, TRUE);
#endif
GST_MINI_OBJECT_CLASS (gst_h264_frame_parent_class)->finalize
(GST_MINI_OBJECT (h264_frame));