mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
faad: use right caps
This commit is contained in:
parent
a7d614b963
commit
395430d350
1 changed files with 3 additions and 6 deletions
|
@ -493,11 +493,8 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
|
||||||
g_free (faad->channel_positions);
|
g_free (faad->channel_positions);
|
||||||
faad->channel_positions = g_memdup (info->channel_position, faad->channels);
|
faad->channel_positions = g_memdup (info->channel_position, faad->channels);
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-int",
|
caps = gst_caps_new_simple ("audio/x-raw",
|
||||||
"endianness", G_TYPE_INT, G_BYTE_ORDER,
|
"format", G_TYPE_STRING, GST_AUDIO_NE (S16),
|
||||||
"signed", G_TYPE_BOOLEAN, TRUE,
|
|
||||||
"width", G_TYPE_INT, 16,
|
|
||||||
"depth", G_TYPE_INT, 16,
|
|
||||||
"rate", G_TYPE_INT, faad->samplerate,
|
"rate", G_TYPE_INT, faad->samplerate,
|
||||||
"channels", G_TYPE_INT, faad->channels, NULL);
|
"channels", G_TYPE_INT, faad->channels, NULL);
|
||||||
|
|
||||||
|
@ -519,7 +516,7 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (faad, "New output caps: %" GST_PTR_FORMAT, caps);
|
GST_DEBUG_OBJECT (faad, "New output caps: %" GST_PTR_FORMAT, caps);
|
||||||
|
|
||||||
ret = gst_pad_set_caps (GST_AUDIO_DECODER_SRC_PAD (faad), caps);
|
ret = gst_audio_decoder_set_outcaps (GST_AUDIO_DECODER (faad), caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue