From 52a4f7a5e86c2eccecbe82630817c72a1b058a2e Mon Sep 17 00:00:00 2001 From: "ebina%netscape.com" Date: Wed, 17 Feb 1999 23:18:13 +0000 Subject: [PATCH] Don't stop looking for converters just because the first one failed. This will be necessary for plugin converters. --- network/main/mkstream.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/network/main/mkstream.c b/network/main/mkstream.c index aa6f278eda08..2469ab52e643 100644 --- a/network/main/mkstream.c +++ b/network/main/mkstream.c @@ -235,10 +235,15 @@ NET_StreamBuilder (FO_Present_Types format_out, if(format_out == cs_ptr->format_out) if(net_compare_mime_types(URL_s->content_type, cs_ptr->format_in)) { + NET_StreamClass *ret_str; net_ConverterElement *elem = XP_ListPeekTopObject(cs_ptr->converter_stack); PR_ASSERT(elem != (net_ConverterElement *)0); - return( (NET_StreamClass *) (*elem->converter) (format_out, - elem->data_obj, URL_s, context)); + ret_str = (NET_StreamClass *) (*elem->converter) (format_out, + elem->data_obj, URL_s, context); + if (ret_str != NULL) + { + return(ret_str); + } } }