rtph261pay: Remove unused adapter

This commit is contained in:
Sebastian Dröge 2015-07-03 14:11:35 +02:00
parent 90d47bff9e
commit b653fae8c9

View file

@ -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 <stian@pexip.com>");
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;