vdpauh264dec: don't use deprecated g_ptr_array_free incase glib >= 2.22
This commit is contained in:
parent
0aa4d01c0f
commit
380ec88b4c
@ -53,7 +53,12 @@ static void
|
|||||||
gst_h264_frame_finalize (GstH264Frame * h264_frame)
|
gst_h264_frame_finalize (GstH264Frame * h264_frame)
|
||||||
{
|
{
|
||||||
g_ptr_array_foreach (h264_frame->slices, (GFunc) gst_buffer_unref, NULL);
|
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);
|
g_ptr_array_free (h264_frame->slices, TRUE);
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_MINI_OBJECT_CLASS (gst_h264_frame_parent_class)->finalize
|
GST_MINI_OBJECT_CLASS (gst_h264_frame_parent_class)->finalize
|
||||||
(GST_MINI_OBJECT (h264_frame));
|
(GST_MINI_OBJECT (h264_frame));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user