diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c index bcf3ba37e1..34861a1a0e 100644 --- a/gst/rtp/gstrtph261pay.c +++ b/gst/rtp/gstrtph261pay.c @@ -994,23 +994,9 @@ gst_rtp_h261_pay_init (GstRtpH261Pay * pay) { GstRTPBasePayload *payload = GST_RTP_BASE_PAYLOAD (pay); payload->pt = GST_RTP_PAYLOAD_H261; - pay->adapter = gst_adapter_new (); pay->offset = 0; } -static void -gst_rtp_h261_pay_finalize (GObject * object) -{ - GstRtpH261Pay *pay; - - pay = GST_RTP_H261_PAY (object); - - g_object_unref (pay->adapter); - pay->adapter = NULL; - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - static void gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass) { @@ -1032,8 +1018,6 @@ gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass) "Payload-encodes H261 video in RTP packets (RFC 4587)", "Stian Selnes "); - gobject_class->finalize = gst_rtp_h261_pay_finalize; - gstrtpbasepayload_class->set_caps = gst_rtp_h261_pay_setcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_h261_pay_handle_buffer;