mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-02 01:41:07 +00:00
vdpauh264dec: don't use glib 2.22 functions
This commit is contained in:
parent
d49cbe69e1
commit
525c7c3933
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,8 @@ static GObjectClass *gst_h264_frame_parent_class;
|
||||||
static void
|
static void
|
||||||
gst_h264_frame_finalize (GstH264Frame * h264_frame)
|
gst_h264_frame_finalize (GstH264Frame * h264_frame)
|
||||||
{
|
{
|
||||||
g_ptr_array_unref (h264_frame->slices);
|
g_ptr_array_foreach (h264_frame->slices, (GFunc) gst_buffer_unref, NULL);
|
||||||
|
g_ptr_array_free (h264_frame->slices, TRUE);
|
||||||
|
|
||||||
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));
|
||||||
|
@ -61,8 +62,7 @@ gst_h264_frame_finalize (GstH264Frame * h264_frame)
|
||||||
static void
|
static void
|
||||||
gst_h264_frame_init (GstH264Frame * h264_frame, gpointer g_class)
|
gst_h264_frame_init (GstH264Frame * h264_frame, gpointer g_class)
|
||||||
{
|
{
|
||||||
h264_frame->slices = g_ptr_array_new_with_free_func (
|
h264_frame->slices = g_ptr_array_new ();
|
||||||
(GDestroyNotify) gst_buffer_unref);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue