Commit e3ff444d authored by Olivier Crete's avatar Olivier Crete Committed by Tim-Philipp Müller
Browse files

gst-libs/gst/rtp/gstbasertpaudiopayload.c: Chain up to parent class in dispose...

gst-libs/gst/rtp/gstbasertpaudiopayload.c: Chain up to parent class in dispose function; get rid of unnecessary 'dipo...

Original commit message from CVS:
Patch by: Olivier Crete  <tester at tester ca>
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
(gst_base_rtp_audio_payload_class_init),
(gst_base_rtp_audio_payload_init),
(gst_base_rtp_audio_payload_dispose):
Chain up to parent class in dispose function; get rid of
unnecessary 'diposed' flag in private structure (#415001).
parent 71d77fbe
2007-04-21 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Olivier Crete <tester at tester ca>
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
(gst_base_rtp_audio_payload_class_init),
(gst_base_rtp_audio_payload_init),
(gst_base_rtp_audio_payload_dispose):
Chain up to parent class in dispose function; get rid of
unnecessary 'diposed' flag in private structure (#415001).
2007-04-21 Tim-Philipp Müller <tim at centricular dot net>
 
* docs/libs/gst-plugins-base-libs.types:
......@@ -81,7 +81,6 @@ struct _GstBaseRTPAudioPayloadPrivate
AudioCodecType type;
GstAdapter *adapter;
guint64 min_ptime;
gboolean disposed;
};
#define DEFAULT_MIN_PTIME 0
......@@ -153,7 +152,7 @@ gst_base_rtp_audio_payload_class_init (GstBaseRTPAudioPayloadClass * klass)
gobject_class->set_property = gst_base_rtp_payload_audio_set_property;
gobject_class->get_property = gst_base_rtp_payload_audio_get_property;
parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
parent_class = g_type_class_peek_parent (klass);
gstbasertppayload_class->handle_buffer =
GST_DEBUG_FUNCPTR (gst_base_rtp_audio_payload_handle_buffer);
......@@ -199,7 +198,6 @@ gst_base_rtp_audio_payload_init (GstBaseRTPAudioPayload * basertpaudiopayload,
basertpaudiopayload->sample_size = 0;
basertpaudiopayload->priv->adapter = gst_adapter_new ();
basertpaudiopayload->priv->disposed = FALSE;
gst_pad_add_event_probe (basertppayload->sinkpad,
G_CALLBACK (gst_base_rtp_payload_audio_handle_event), NULL);
......@@ -213,14 +211,12 @@ gst_base_rtp_audio_payload_dispose (GObject * object)
basertpaudiopayload = GST_BASE_RTP_AUDIO_PAYLOAD (object);
if (basertpaudiopayload->priv->disposed)
return;
basertpaudiopayload->priv->disposed = TRUE;
if (basertpaudiopayload->priv->adapter) {
g_object_unref (basertpaudiopayload->priv->adapter);
basertpaudiopayload->priv->adapter = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment