diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-03 20:09:30 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-03 20:09:30 +0000 |
commit | 208a8f8d715d3085498aa26eb996b6a7f6c8e41f (patch) | |
tree | c709d1d74a3e0168d363a8174fe964a8950ef056 | |
parent | b6e5857742b64dac6ba50eb68596c367e8dc0bb7 (diff) | |
download | xine-lib-208a8f8d715d3085498aa26eb996b6a7f6c8e41f.tar.gz xine-lib-208a8f8d715d3085498aa26eb996b6a7f6c8e41f.tar.bz2 |
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
-rw-r--r-- | src/demuxers/demux_mpgaudio.c | 16 |
1 files changed, 12 insertions, 4 deletions
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, '.'); |