[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_start-
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e |
Date: |
Fri, 18 Feb 2011 22:27:14 +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 c03ea7ec043e5ebe206d00cb1d936e403b48b006 (commit)
from 79a14692a7ba9502ee82d5365ef5275748bc16b7 (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=c03ea7ec043e5ebe206d00cb1d936e403b48b006
commit c03ea7ec043e5ebe206d00cb1d936e403b48b006
Author: Bastiaan Jacques <address@hidden>
Date: Fri Feb 18 23:17:23 2011 +0100
Override unplugInputStream so _inputStreams is accessed in a
thread-safe manner. Fixes bug #32538.
diff --git a/libsound/sdl/sound_handler_sdl.cpp
b/libsound/sdl/sound_handler_sdl.cpp
index 80af7d6..5081467 100644
--- a/libsound/sdl/sound_handler_sdl.cpp
+++ b/libsound/sdl/sound_handler_sdl.cpp
@@ -338,6 +338,14 @@ SDL_sound_handler::unpause()
sound_handler::unpause();
}
+void
+SDL_sound_handler::unplugInputStream(InputStream* id)
+{
+ boost::mutex::scoped_lock lock(_mutex);
+
+ sound_handler::unplugInputStream(id);
+}
+
} // gnash.sound namespace
} // namespace gnash
diff --git a/libsound/sdl/sound_handler_sdl.h b/libsound/sdl/sound_handler_sdl.h
index b0f060b..b7bf867 100644
--- a/libsound/sdl/sound_handler_sdl.h
+++ b/libsound/sdl/sound_handler_sdl.h
@@ -153,6 +153,9 @@ public:
// Overridden to unpause SDL audio
void plugInputStream(std::auto_ptr<InputStream> in);
+ // Overidden to provide thread safety.
+ void unplugInputStream(InputStream* id);
+
// See dox in sound_handler.h
void fetchSamples(boost::int16_t* to, unsigned int nSamples);
};
-----------------------------------------------------------------------
Summary of changes:
libsound/sdl/sound_handler_sdl.cpp | 8 ++++++++
libsound/sdl/sound_handler_sdl.h | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
hooks/post-receive
--
Gnash
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e,
Bastiaan Jacques <=
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Bastiaan Jacques, 2011/02/18
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Sandro Santilli, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Bastiaan Jacques, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Bastiaan Jacques, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Bastiaan Jacques, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Bastiaan Jacques, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Sandro Santilli, 2011/02/19
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Sandro Santilli, 2011/02/21
- Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-91-gc03ea7e, Sandro Santilli, 2011/02/19