ext: Update for GstAudioEncoder API changes

This commit is contained in:
Sebastian Dröge 2012-03-30 12:18:45 +02:00
parent 81c4f56e1b
commit b16f5637e8
3 changed files with 8 additions and 8 deletions

View file

@ -377,7 +377,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass)
base_class->set_format = GST_DEBUG_FUNCPTR (gst_flac_enc_set_format);
base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_flac_enc_handle_frame);
base_class->getcaps = GST_DEBUG_FUNCPTR (gst_flac_enc_getcaps);
base_class->event = GST_DEBUG_FUNCPTR (gst_flac_enc_sink_event);
base_class->sink_event = GST_DEBUG_FUNCPTR (gst_flac_enc_sink_event);
}
static void
@ -1125,7 +1125,7 @@ gst_flac_enc_sink_event (GstAudioEncoder * enc, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
flacenc->eos = TRUE;
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->event (enc, event);
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (enc, event);
break;
case GST_EVENT_TAG:
if (flacenc->tags) {
@ -1135,10 +1135,10 @@ gst_flac_enc_sink_event (GstAudioEncoder * enc, GstEvent * event)
} else {
g_assert_not_reached ();
}
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->event (enc, event);
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (enc, event);
break;
default:
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->event (enc, event);
ret = GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (enc, event);
break;
}

View file

@ -166,7 +166,7 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass)
base_class->stop = GST_DEBUG_FUNCPTR (gst_speex_enc_stop);
base_class->set_format = GST_DEBUG_FUNCPTR (gst_speex_enc_set_format);
base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_speex_enc_handle_frame);
base_class->event = GST_DEBUG_FUNCPTR (gst_speex_enc_sink_event);
base_class->sink_event = GST_DEBUG_FUNCPTR (gst_speex_enc_sink_event);
base_class->pre_push = GST_DEBUG_FUNCPTR (gst_speex_enc_pre_push);
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_QUALITY,
@ -530,7 +530,7 @@ gst_speex_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 GstFlowReturn

View file

@ -232,7 +232,7 @@ gst_wavpack_enc_class_init (GstWavpackEncClass * klass)
base_class->stop = GST_DEBUG_FUNCPTR (gst_wavpack_enc_stop);
base_class->set_format = GST_DEBUG_FUNCPTR (gst_wavpack_enc_set_format);
base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_wavpack_enc_handle_frame);
base_class->event = GST_DEBUG_FUNCPTR (gst_wavpack_enc_sink_event);
base_class->sink_event = GST_DEBUG_FUNCPTR (gst_wavpack_enc_sink_event);
/* install all properties */
g_object_class_install_property (gobject_class, ARG_MODE,
@ -897,7 +897,7 @@ gst_wavpack_enc_sink_event (GstAudioEncoder * benc, GstEvent * event)
}
/* baseclass handles rest */
return GST_AUDIO_ENCODER_CLASS (parent_class)->event (benc, event);
return GST_AUDIO_ENCODER_CLASS (parent_class)->sink_event (benc, event);
}
static void