comparison src/flac112/plugin.c @ 490:be4cde738a73 trunk

[svn] flac 112 plugin: disabled built-in http stream support
author giacomo
date Sun, 21 Jan 2007 15:33:20 -0800
parents ce4efa148521
children 0dd1ff7e5ba7
comparison
equal deleted inserted replaced
489:ce4efa148521 490:be4cde738a73
850 DECODER_FUNCS [DECODER_HTTP] = & HTTP_DECODER_FUNCTIONS; 850 DECODER_FUNCS [DECODER_HTTP] = & HTTP_DECODER_FUNCTIONS;
851 } 851 }
852 852
853 static decoder_t source_to_decoder_type (const char *source) 853 static decoder_t source_to_decoder_type (const char *source)
854 { 854 {
855 return strncasecmp(source, "http://", 7) ? DECODER_FILE : DECODER_HTTP; 855 /* NOTE: in Audacious, always use DECODER_FILE to pick files via VFS;
856 http flac stream support is not used */
857 return DECODER_FILE;
858
859 /* return strncasecmp(source, "http://", 7) ? DECODER_FILE : DECODER_HTTP; */
856 } 860 }
857 861
858 static void change_decoder_if_needed (decoder_t new_decoder_type, void **decoderp, decoder_funcs_t const ** fntabp) 862 static void change_decoder_if_needed (decoder_t new_decoder_type, void **decoderp, decoder_funcs_t const ** fntabp)
859 { 863 {
860 const decoder_funcs_t *new_fn_table = DECODER_FUNCS [new_decoder_type]; 864 const decoder_funcs_t *new_fn_table = DECODER_FUNCS [new_decoder_type];