[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: |
Gabriele Giacone |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-637-g0ac5315 |
Date: |
Tue, 16 Aug 2011 23:44:42 +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 0ac5315c86112e291d7268583f0d6775108af7f7 (commit)
via 515e64a82f7077359c99cf9d1e8a370a7d9fa1d2 (commit)
via 354169ed1348d011093af8039da4ffaf3aac10b7 (commit)
from 8ccbf7348862ba7aab9fd1e871464e5dab74d631 (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=0ac5315c86112e291d7268583f0d6775108af7f7
commit 0ac5315c86112e291d7268583f0d6775108af7f7
Author: Gabriele Giacone <address@hidden>
Date: Sun Jul 31 03:37:02 2011 +0200
Inefficient emptiness checks.
diff --git a/cygnal/cgi-bin/oflaDemo/oflaDemo.cpp
b/cygnal/cgi-bin/oflaDemo/oflaDemo.cpp
index 7e8f6ca..a289821 100644
--- a/cygnal/cgi-bin/oflaDemo/oflaDemo.cpp
+++ b/cygnal/cgi-bin/oflaDemo/oflaDemo.cpp
@@ -145,7 +145,7 @@ extern "C" {
vector<boost::shared_ptr<cygnal::Element> > request =
oflaDemo.parseOflaDemoRequest(data, size);
- if (request.size() == 0) {
+ if (request.empty()) {
// Send the packet to notify the client that the
// NetConnection::connect() was sucessful. After the client
// receives this, the handhsake is completed.
@@ -303,7 +303,7 @@ demoService::getListOfAvailableFiles(const std::string
&path,
_path = path; // store for later
// If we don't have any files yet, look for some.
- if (_stats.size() == 0) {
+ if (_stats.empty()) {
struct dirent *entry;
#ifndef HAVE_SCANDIR
log_debug(_("Scanning directory \"%s\" for %s files"), path, type);
http://git.savannah.gnu.org/cgit//commit/?id=515e64a82f7077359c99cf9d1e8a370a7d9fa1d2
commit 515e64a82f7077359c99cf9d1e8a370a7d9fa1d2
Author: Gabriele Giacone <address@hidden>
Date: Sun Jul 31 03:37:57 2011 +0200
Remove unused var.
diff --git a/cygnal/cvm.cpp b/cygnal/cvm.cpp
index db19f89..97c0068 100644
--- a/cygnal/cvm.cpp
+++ b/cygnal/cvm.cpp
@@ -454,7 +454,6 @@ play_movie(const std::string& filename, const RunResources&
runResources)
resetLastAdvanceTimer();
int kick_count = 0;
- int stop_count=0;
size_t loop_back_count=0;
size_t latest_frame=0;
size_t end_hitcount=0;
@@ -505,8 +504,6 @@ play_movie(const std::string& filename, const RunResources&
runResources)
if (curr_frame == last_frame) {
// Max stop counts reached, kick it
if ( secondsSinceLastAdvance() > waitforadvance ) {
- stop_count=0;
-
// Kick the movie.
if ( last_frame + 1 > md->get_frame_count() -1 ) {
fprintf(stderr, "Exiting after %g seconds in STOP mode at
last frame\n", waitforadvance);
@@ -539,7 +536,6 @@ play_movie(const std::string& filename, const RunResources&
runResources)
}
} else {
kick_count = 0;
- stop_count = 0;
resetLastAdvanceTimer();
}
http://git.savannah.gnu.org/cgit//commit/?id=354169ed1348d011093af8039da4ffaf3aac10b7
commit 354169ed1348d011093af8039da4ffaf3aac10b7
Author: Gabriele Giacone <address@hidden>
Date: Sun Jul 31 03:44:44 2011 +0200
Obsolete usleep to gnashSleep.
diff --git a/plugin/npapi/plugin.cpp b/plugin/npapi/plugin.cpp
index c6981f6..83641a5 100644
--- a/plugin/npapi/plugin.cpp
+++ b/plugin/npapi/plugin.cpp
@@ -30,6 +30,7 @@
#include <cstdlib> // getenv
#include <stdlib.h> // putenv
#include <sys/types.h>
+#include "GnashSleep.h" // usleep
#if defined(HAVE_WINSOCK_H) && !defined(__OS2__)
# include <winsock2.h>
@@ -484,7 +485,7 @@ nsPluginInstance::~nsPluginInstance()
if (rv <= 0) {
int* pid = new int(_childpid);
- usleep(1000);
+ gnashSleep(1000);
cleanup_childpid(pid);
} else {
gnash::log_debug("Child process exited with status %d", status);
-----------------------------------------------------------------------
Summary of changes:
cygnal/cgi-bin/oflaDemo/oflaDemo.cpp | 4 ++--
cygnal/cvm.cpp | 4 ----
plugin/npapi/plugin.cpp | 3 ++-
3 files changed, 4 insertions(+), 7 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-637-g0ac5315,
Gabriele Giacone <=