From 6382c57f0e4287ad8875897bce394c718259f7a3 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 18 Dec 2003 09:31:50 +0000 Subject: Sorry Dave... Add mpegversion=1 to mp3 caps everywhere so that the autoplugger uses mad and not faad for mp3 decoding... Original commit message from CVS: Sorry Dave... Add mpegversion=1 to mp3 caps everywhere so that the autoplugger uses mad and not faad for mp3 decoding. This should fix mp3 playback. --- ext/faad/gstfaad.c | 1 + ext/mplex/gstmplex.cc | 1 + ext/shout/gstshout.c | 1 + 3 files changed, 3 insertions(+) (limited to 'ext') diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 56f38a4e..3be8fd92 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -404,6 +404,7 @@ gst_faad_chain (GstPad *pad, gst_buffer_unref (buf); return; } + if (info.samplerate != faad->samplerate || info.channels != faad->channels) { faad->samplerate = info.samplerate; diff --git a/ext/mplex/gstmplex.cc b/ext/mplex/gstmplex.cc index ecf0ac2e..c63d1801 100644 --- a/ext/mplex/gstmplex.cc +++ b/ext/mplex/gstmplex.cc @@ -87,6 +87,7 @@ GST_PAD_TEMPLATE_FACTORY (audio_sink_factory, GST_CAPS_NEW ( "sink_audio", "audio/mpeg", + "mpegversion", GST_PROPS_INT (1), "layer", GST_PROPS_INT_RANGE (1, 3) ) ) diff --git a/ext/shout/gstshout.c b/ext/shout/gstshout.c index 2af0bc99..144835fe 100644 --- a/ext/shout/gstshout.c +++ b/ext/shout/gstshout.c @@ -77,6 +77,7 @@ sink_template_factory (void) "icecastsend_sink", "audio/mpeg", gst_props_new ( + "mpegversion", GST_PROPS_INT (1), "layer", GST_PROPS_INT_RANGE (1, 3), NULL )), -- cgit v1.2.1