CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/12/01 19:55:20
Modified files: . : ChangeLog utilities : processor.cpp Log message: add support for reading from stdin. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5043&r2=1.5044 http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/processor.cpp?cvsroot=gnash&r1=1.71&r2=1.72 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5043 retrieving revision 1.5044 diff -u -b -r1.5043 -r1.5044 --- ChangeLog 1 Dec 2007 15:49:57 -0000 1.5043 +++ ChangeLog 1 Dec 2007 19:55:19 -0000 1.5044 @@ -1,5 +1,9 @@ 2007-12-01 Sandro Santilli <[EMAIL PROTECTED]> + * utilities/processor.cpp: add support for reading from stdin. + +2007-12-01 Sandro Santilli <[EMAIL PROTECTED]> + * libbase/: Makefile.am, triangulate.h, triangulate_float.cpp, triangulate_impl.h, triangulate_sint32.cpp: drop dead code. Index: utilities/processor.cpp =================================================================== RCS file: /sources/gnash/gnash/utilities/processor.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -b -r1.71 -r1.72 --- utilities/processor.cpp 1 Dec 2007 01:08:10 -0000 1.71 +++ utilities/processor.cpp 1 Dec 2007 19:55:20 -0000 1.72 @@ -16,7 +16,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -/* $Id: processor.cpp,v 1.71 2007/12/01 01:08:10 strk Exp $ */ +/* $Id: processor.cpp,v 1.72 2007/12/01 19:55:20 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,6 +43,7 @@ #include "GnashException.h" #include "debugger.h" #include "VM.h" +#include "noseek_fd_adapter.h" extern "C"{ #include <unistd.h> @@ -309,8 +310,16 @@ gnash::movie_definition* md; try { + if ( ! strcmp(filename, "-") ) + { + std::auto_ptr<tu_file> in ( noseek_fd_adapter::make_stream(fileno(stdin)) ); + md = gnash::create_movie(in, filename, false); + } + else + { md = gnash::create_library_movie(URL(filename), NULL, false); } + } catch (GnashException& ge) { md = NULL; _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit