Index: backend/gnash.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/gnash.cpp,v retrieving revision 1.32 diff -U2 -r1.32 gnash.cpp --- backend/gnash.cpp 11 May 2006 09:34:43 -0000 1.32 +++ backend/gnash.cpp 12 May 2006 22:22:21 -0000 @@ -41,4 +41,8 @@ #endif +#ifdef HAVE_CURL_CURL_H +#define USE_CURL 1 +#endif + #ifdef HAVE_SDL_H #include "SDL.h" @@ -50,4 +54,5 @@ #include #include +#include #include @@ -73,4 +78,7 @@ //#include "Movie.h" #include "movie_definition.h" +#ifdef USE_CURL +#include "curl_adapter.h" +#endif using namespace std; @@ -130,6 +138,16 @@ FILE *newin = fdopen(dup(0),"rb"); return new tu_file(newin, false); - } else { - return new tu_file(url, "rb"); + } + else if ( ! strncmp(url, "http://", 7) ) + { +#ifdef USE_CURL + return curl_adapter::make_stream(url); +#else + log_error("Unsupported network connections"); +#endif + } + else + { + return new tu_file(url, "rb"); } }