vorbisenc: adjust to modified audioencoder getcaps helper API

This commit is contained in:
Mark Nauwelaerts 2012-07-25 14:56:35 +02:00
parent 1f962bc108
commit f1c583bde3

View file

@ -301,10 +301,10 @@ gst_vorbis_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter)
if (filter) { if (filter) {
GstCaps *int_caps = gst_caps_intersect_full (filter, vorbisenc->sinkcaps, GstCaps *int_caps = gst_caps_intersect_full (filter, vorbisenc->sinkcaps,
GST_CAPS_INTERSECT_FIRST); GST_CAPS_INTERSECT_FIRST);
caps = gst_audio_encoder_proxy_getcaps (enc, int_caps); caps = gst_audio_encoder_proxy_getcaps (enc, int_caps, filter);
gst_caps_unref (int_caps); gst_caps_unref (int_caps);
} else { } else {
caps = gst_audio_encoder_proxy_getcaps (enc, vorbisenc->sinkcaps); caps = gst_audio_encoder_proxy_getcaps (enc, vorbisenc->sinkcaps, filter);
} }
return caps; return caps;