From e74c1d24148c105c3be1e27a990ffcb2a39fa256 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 30 Mar 2012 12:22:48 +0200 Subject: [PATCH] ext: Update for GstAudioEncoder API changes --- ext/celt/gstceltenc.c | 4 ++-- ext/opus/gstopusenc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c index 09cd442..a924065 100644 --- a/ext/celt/gstceltenc.c +++ b/ext/celt/gstceltenc.c @@ -152,7 +152,7 @@ gst_celt_enc_class_init (GstCeltEncClass * klass) gstbase_class->stop = GST_DEBUG_FUNCPTR (gst_celt_enc_stop); gstbase_class->set_format = GST_DEBUG_FUNCPTR (gst_celt_enc_set_format); gstbase_class->handle_frame = GST_DEBUG_FUNCPTR (gst_celt_enc_handle_frame); - gstbase_class->event = GST_DEBUG_FUNCPTR (gst_celt_enc_sink_event); + gstbase_class->sink_event = GST_DEBUG_FUNCPTR (gst_celt_enc_sink_event); gstbase_class->pre_push = GST_DEBUG_FUNCPTR (gst_celt_enc_pre_push); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BITRATE, @@ -403,7 +403,7 @@ gst_celt_enc_sink_event (GstAudioEncoder * benc, GstEvent * event) } /* we only peeked, let base class handle it */ - return GST_AUDIO_ENCODER_CLASS (parent_class)->event (benc, event); + return GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (benc, event); } static GstBuffer * diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index be95fb7..1dfcf48 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -214,7 +214,7 @@ gst_opus_enc_class_init (GstOpusEncClass * klass) base_class->stop = GST_DEBUG_FUNCPTR (gst_opus_enc_stop); base_class->set_format = GST_DEBUG_FUNCPTR (gst_opus_enc_set_format); base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_opus_enc_handle_frame); - base_class->event = GST_DEBUG_FUNCPTR (gst_opus_enc_sink_event); + base_class->sink_event = GST_DEBUG_FUNCPTR (gst_opus_enc_sink_event); base_class->getcaps = GST_DEBUG_FUNCPTR (gst_opus_enc_sink_getcaps); g_object_class_install_property (gobject_class, PROP_AUDIO, @@ -707,7 +707,7 @@ gst_opus_enc_sink_event (GstAudioEncoder * benc, GstEvent * event) break; } - return GST_AUDIO_ENCODER_CLASS (parent_class)->event (benc, event); + return GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (benc, event); } static GstCaps * -- 2.7.4