mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
ext/lame/gstlame.c: revert previous fix
Original commit message from CVS: 2004-08-12 Zaheer Abbas Merali <zaheerabbas at merali dot org> * ext/lame/gstlame.c: (gst_lame_src_link): revert previous fix
This commit is contained in:
parent
3071745903
commit
9806aca494
1 changed files with 1 additions and 11 deletions
|
@ -353,7 +353,7 @@ gst_lame_src_link (GstPad * pad, const GstCaps * caps)
|
||||||
GstLame *lame;
|
GstLame *lame;
|
||||||
gint out_samplerate;
|
gint out_samplerate;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
GstCaps *othercaps, *channelcaps, *ratecaps;
|
GstCaps *othercaps, *channelcaps;
|
||||||
GstPadLinkReturn result;
|
GstPadLinkReturn result;
|
||||||
|
|
||||||
lame = GST_LAME (gst_pad_get_parent (pad));
|
lame = GST_LAME (gst_pad_get_parent (pad));
|
||||||
|
@ -363,16 +363,6 @@ gst_lame_src_link (GstPad * pad, const GstCaps * caps)
|
||||||
!gst_structure_get_int (structure, "channels", &lame->num_channels))
|
!gst_structure_get_int (structure, "channels", &lame->num_channels))
|
||||||
g_return_val_if_reached (GST_PAD_LINK_REFUSED);
|
g_return_val_if_reached (GST_PAD_LINK_REFUSED);
|
||||||
|
|
||||||
/* try sample rate */
|
|
||||||
ratecaps =
|
|
||||||
gst_caps_new_simple ("audio/x-raw-int",
|
|
||||||
"channels", G_TYPE_INT, lame->num_channels,
|
|
||||||
"rate", G_TYPE_INT, out_samplerate, NULL);
|
|
||||||
result = gst_pad_try_set_caps (lame->srcpad, ratecaps);
|
|
||||||
gst_caps_free (ratecaps);
|
|
||||||
if (GST_PAD_LINK_FAILED (result))
|
|
||||||
return result;
|
|
||||||
|
|
||||||
if (lame_set_out_samplerate (lame->lgf, out_samplerate) != 0)
|
if (lame_set_out_samplerate (lame->lgf, out_samplerate) != 0)
|
||||||
return GST_PAD_LINK_REFUSED;
|
return GST_PAD_LINK_REFUSED;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue