mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
amrwbenc: Use new audio encoder/decoder base class API for srcpad caps
This commit is contained in:
parent
e321274933
commit
43da3e6f9e
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ gst_voamrwbenc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
|
||||||
"channels", G_TYPE_INT, amrwbenc->channels,
|
"channels", G_TYPE_INT, amrwbenc->channels,
|
||||||
"rate", G_TYPE_INT, amrwbenc->rate, NULL);
|
"rate", G_TYPE_INT, amrwbenc->rate, NULL);
|
||||||
|
|
||||||
gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (amrwbenc), copy);
|
gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (amrwbenc), copy);
|
||||||
gst_caps_unref (copy);
|
gst_caps_unref (copy);
|
||||||
|
|
||||||
/* report needs to base class: one frame at a time */
|
/* report needs to base class: one frame at a time */
|
||||||
|
|
Loading…
Reference in a new issue