static GstFlowReturn
vorbis_handle_identification_packet (GstVorbisDec * vd)
{
- GstCaps *caps;
GstAudioInfo info;
switch (vd->vi.channels) {
}
}
- caps = gst_audio_info_to_caps (&info);
- gst_audio_decoder_set_outcaps (GST_AUDIO_DECODER (vd), caps);
- gst_caps_unref (caps);
+ gst_audio_decoder_set_output_format (GST_AUDIO_DECODER (vd), &info);
vd->info = info;
/* select a copy_samples function, this way we can have specialized versions
/* negotiate with these caps */
GST_DEBUG_OBJECT (vorbisenc, "here are the caps: %" GST_PTR_FORMAT, caps);
- gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (vorbisenc), caps);
+ gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (vorbisenc), caps);
gst_caps_unref (caps);
/* store buffers for later pre_push sending */