[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-256-gfa6734b |
Date: |
Mon, 11 Apr 2011 17:42:55 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via fa6734bce7e70bfed07c1e1f6e63b2d7581b39d9 (commit)
from 532d2072629b65e12a6822512d46d5b3ecef7de2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=fa6734bce7e70bfed07c1e1f6e63b2d7581b39d9
commit fa6734bce7e70bfed07c1e1f6e63b2d7581b39d9
Author: Sandro Santilli <address@hidden>
Date: Mon Apr 11 19:41:13 2011 +0200
Play all movies given on command line, serializing them. This is a basis
for furhter evaluating leftover singletons. Not all GUIs are handling this the
same way. GTK, in particular, seems to be getting old windows stuck.
diff --git a/gui/gnash.cpp b/gui/gnash.cpp
index fdd26e0..d596d27 100644
--- a/gui/gnash.cpp
+++ b/gui/gnash.cpp
@@ -32,6 +32,8 @@
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/function.hpp>
+#include <boost/bind.hpp>
+#include <algorithm>
#include <cstdlib>
#include <utility>
#include <functional>
@@ -80,6 +82,13 @@ namespace {
void version_and_copyright(std::ostream& os);
}
+void
+playFile(gnash::Player& player, int argc, char *argv[],
+ const std::string& filename)
+{
+ player.run(argc, argv, filename, url);
+}
+
int
main(int argc, char *argv[])
{
@@ -160,7 +169,8 @@ main(int argc, char *argv[])
// We only expect GnashExceptions here. No others should be thrown!
try {
- player.run(argc, argv, infiles.front(), url);
+ std::for_each(infiles.begin(), infiles.end(),
+ boost::bind(&playFile, boost::ref(player), argc, argv, _1));
}
catch (const gnash::GnashException& ex) {
std::cerr << "Error: " << ex.what() << "\n";
-----------------------------------------------------------------------
Summary of changes:
gui/gnash.cpp | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-256-gfa6734b,
Sandro Santilli <=