From 208a8f8d715d3085498aa26eb996b6a7f6c8e41f Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 3 Nov 2002 20:09:30 +0000 Subject: fixed icecast support - next one who breaks my online radios I'll ... erm, uohm ... you don't want to find out >:-> CVS patchset: 3167 CVS date: 2002/11/03 20:09:30 --- src/demuxers/demux_mpgaudio.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c index d9a3a1ff2..d9cb5a6f0 100644 --- a/src/demuxers/demux_mpgaudio.c +++ b/src/demuxers/demux_mpgaudio.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpgaudio.c,v 1.75 2002/11/01 17:41:18 mroi Exp $ + * $Id: demux_mpgaudio.c,v 1.76 2002/11/03 20:09:30 guenter Exp $ * * demultiplexer for mpeg audio (i.e. mp3) streams * @@ -469,6 +469,10 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str xine_log (stream->xine, XINE_LOG_MSG, _("demux_mpgaudio: no audio driver!\n") ); return NULL; } + +#ifdef LOG + printf ("demux_mpgaudio: trying to open %s...\n", input->get_mrl(input)); +#endif switch (stream->content_detection_method) { @@ -516,8 +520,12 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str if (!ok) return NULL; - } else if (!mpg123_head_check(head)) - return NULL; + } else if (!mpg123_head_check(head)) { +#ifdef LOG + printf ("demux_mpgaudio: head_check failed\n"); +#endif + return NULL; + } } break; @@ -531,7 +539,7 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str printf ("demux_mpgaudio: stage by extension %s\n", MRL); #endif - if (strncmp (MRL, "ice:/", 5)) { + if (strncmp (MRL, "ice :/", 6)) { suffix = strrchr(MRL, '.'); -- cgit v1.2.3