mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
vdpauh264dec: don't use deprecated g_ptr_array_free incase glib >= 2.22
This commit is contained in:
parent
0aa4d01c0f
commit
380ec88b4c
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue